/* ============================================================
   TAJ777 CHILD THEME — Header & Footer Styles
   Prefix: .t7-  |  Variables: --t7-*
   ============================================================ */

:root {
    --t7-dk-900:     #060b18;
    --t7-dk-800:     #0a1022;
    --t7-dk-700:     #111b33;
    --t7-green:      #22c55e;
    --t7-green-dark: #16a34a;
    --t7-yellow:     #fbbf24;
    --t7-gray-200:   #e2e8f0;
    --t7-gray-400:   #94a3b8;
    --t7-gray-500:   #64748b;
    --t7-gray-600:   #475569;
    --t7-header-h:   56px;
    --t7-marquee-h:  30px;
    --t7-header-bg:  #060b18;
    --t7-footer-bg:  #060b18;
}

/* ---- Base ---- */
.t7-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 12px;
}
@media (min-width: 640px) {
    .t7-container { padding: 0 16px; }
}

/* ============================================================
   HEADER
   ============================================================ */
.t7-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--t7-header-bg);
    transition: box-shadow .3s;
}
.t7-header.scrolled {
    box-shadow: 0 4px 24px rgba(0, 0, 0, .4);
}
.t7-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--t7-header-h);
}

/* ---- Logo ---- */
.logo-img {
    width: auto;
    height: 34px;
    max-width: 150px;
    object-fit: contain;
}
.t7-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    text-decoration: none;
}
.t7-logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: var(--t7-green);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}
.t7-logo-text {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.02em;
    font-family: 'Inter', sans-serif;
}
.t7-logo-text span { color: var(--t7-green); }

/* ---- Desktop Nav ---- */
.t7-desktop-nav {
    display: none;
    align-items: center;
    gap: 2px;
}
@media (min-width: 1024px) {
    .t7-desktop-nav { display: flex; }
}
.t7-desktop-nav ul {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.t7-desktop-nav li { position: relative; }
/* Hide sub-menus */
.t7-desktop-nav li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--t7-dk-800);
    border-radius: 6px;
    padding: 6px 0;
    min-width: 180px;
    z-index: 10;
    box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.t7-desktop-nav li:hover > ul { display: block; }
.t7-desktop-nav li ul li a {
    padding: 8px 16px;
    white-space: nowrap;
    border-bottom: none;
}
.t7-desktop-nav a {
    display: block;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 500;
    color: #d1d5db;
    transition: color .2s;
    white-space: nowrap;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
}
.t7-desktop-nav a:hover,
.t7-desktop-nav .current-menu-item > a,
.t7-desktop-nav .current-menu-ancestor > a { color: var(--t7-green); }

/* ---- Header CTA Buttons ---- */
.t7-header-cta {
    display: none;
    align-items: center;
    gap: 6px;
}
@media (min-width: 1024px) {
    .t7-header-cta { display: flex; }
}

/* ---- Shared button styles ---- */
.t7-btn-login,
.t7-btn-register,
.t7-btn-deposit,
.t7-mobile-deposit {
    display: inline-block;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    border-radius: 6px;
    transition: all .2s;
    cursor: pointer;
    line-height: 1;
}
.t7-btn-login {
    padding: 6px 14px;
    font-size: 13px;
    color: #e5e7eb;
    border: 1px solid #4b5563;
    background: transparent;
}
.t7-btn-login:hover { border-color: #fff; color: #fff; }

.t7-btn-register {
    padding: 6px 14px;
    font-size: 13px;
    color: var(--t7-dk-900);
    background: var(--t7-yellow);
    border: none;
}
.t7-btn-register:hover { background: #fde047; color: var(--t7-dk-900); }

.t7-btn-deposit {
    padding: 6px 14px;
    font-size: 13px;
    color: #fff;
    background: var(--t7-green);
    border: none;
}
.t7-btn-deposit:hover { background: var(--t7-green-dark); color: #fff; }

/* ---- Hamburger ---- */
.t7-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    padding: 6px;
    font-size: 22px;
    background: none;
    border: none;
    cursor: pointer;
    transition: opacity .2s;
}
.t7-menu-toggle:hover { opacity: .8; }
@media (min-width: 1024px) {
    .t7-menu-toggle { display: none; }
}

/* ---- Mobile Menu ---- */
.t7-mobile-menu {
    display: none;
    background: var(--t7-dk-800);
    border-top: 1px solid rgba(55, 65, 81, .5);
    padding: 0 12px 12px;
}
.t7-mobile-menu.open { display: block; }
.t7-mobile-menu > ul,
.t7-mobile-menu > div > ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.t7-mobile-menu > ul > li > a {
    display: block;
    padding: 10px 0;
    font-size: 13px;
    font-weight: 500;
    color: #d1d5db;
    border-bottom: 1px solid rgba(55, 65, 81, .3);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    transition: color .2s;
}
.t7-mobile-menu > ul > li > a:hover { color: var(--t7-green); }
.t7-mobile-menu > ul > li:last-child > a { border-bottom: none; }
/* Sub-menu in mobile: indent */
.t7-mobile-menu ul ul { padding-left: 12px; }
.t7-mobile-menu ul ul a {
    font-size: 12px;
    color: #9ca3af;
}
.t7-mobile-cta {
    display: flex;
    gap: 6px;
    margin-top: 12px;
}
.t7-mobile-cta .t7-btn-login,
.t7-mobile-cta .t7-btn-register {
    flex: 1;
    text-align: center;
    padding: 8px;
}
.t7-mobile-deposit {
    display: block;
    margin-top: 6px;
    text-align: center;
    padding: 8px;
    font-size: 13px;
    color: #fff;
    background: var(--t7-green);
    border-radius: 6px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}
.t7-mobile-deposit:hover { background: var(--t7-green-dark); }

/* ---- Marquee Bar ---- */
.t7-marquee-bar {
    background: var(--t7-dk-800);
    border-top: 1px solid rgba(55, 65, 81, .3);
    overflow: hidden;
    height: var(--t7-marquee-h);
    display: flex;
    align-items: center;
}
.t7-marquee-track {
    display: flex;
    animation: t7-marquee 24s linear infinite;
    white-space: nowrap;
}
.t7-marquee-track:hover { animation-play-state: paused; }
.t7-marquee-track span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 28px;
    font-size: 11px;
    color: var(--t7-gray-400);
    font-family: 'Inter', sans-serif;
}
@keyframes t7-marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---- Header Spacer ---- */
.t7-header-spacer {
    height: calc(var(--t7-header-h) + var(--t7-marquee-h));
}

/* ============================================================
   FOOTER
   ============================================================ */
.t7-footer {
    background: var(--t7-footer-bg);
    padding-top: 40px;
    padding-bottom: 20px;
    font-family: 'Inter', sans-serif;
}

/* ---- Footer Grid ---- */
.t7-footer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}
@media (min-width: 640px) {
    .t7-footer-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
    .t7-footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr; }
}

/* ---- Brand Column ---- */
.t7-footer-brand {
    grid-column: 1 / -1;
    margin-bottom: 8px;
}
@media (min-width: 1024px) {
    .t7-footer-brand {
        grid-column: 1;
        margin-bottom: 0;
    }
}
.t7-footer-brand .t7-logo { margin-bottom: 12px; }
.t7-footer-brand p {
    font-size: 13px;
    color: var(--t7-gray-400);
    line-height: 1.7;
    margin-bottom: 12px;
}

/* ---- Social Icons ---- */
.t7-footer-social { display: flex; gap: 10px; }
.t7-footer-social a {
    width: 34px;
    height: 34px;
    background: var(--t7-dk-700);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    text-decoration: none;
    transition: background .2s;
    flex-shrink: 0;
}
.t7-footer-social .t7-fb:hover { background: #2563eb; }
.t7-footer-social .t7-tg:hover { background: #0ea5e9; }
.t7-footer-social .t7-ig:hover { background: #db2777; }

/* ---- Footer Columns ---- */
.t7-footer-col h4 {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 14px;
}
/* wp_nav_menu renders a <ul> directly inside .t7-footer-col */
.t7-footer-col ul,
.t7-footer-col > ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}
/* Remove nested bullet lists from WP menu */
.t7-footer-col ul ul { padding-left: 0; }
.t7-footer-col a {
    font-size: 13px;
    color: var(--t7-gray-400);
    transition: color .2s;
    text-decoration: none;
}
.t7-footer-col a:hover { color: var(--t7-green); }

/* ---- Contact List ---- */
.t7-footer-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.t7-footer-contact li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--t7-gray-400);
}
.t7-footer-contact .iconify {
    color: var(--t7-green);
    font-size: 15px;
    flex-shrink: 0;
}
.t7-footer-contact a {
    color: var(--t7-gray-400);
    text-decoration: none;
    transition: color .2s;
}
.t7-footer-contact a:hover { color: var(--t7-green); }

/* ---- Divider ---- */
.t7-footer-divider {
    border: none;
    border-top: 1px solid rgba(55, 65, 81, .5);
    margin: 0;
}

/* ---- Payment Methods ---- */
.t7-payment-section {
    padding: 28px 0;
    text-align: center;
}
.t7-payment-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--t7-gray-500);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 12px;
}
.t7-payment-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}
.t7-pay-badge {
    background: #fff;
    border: 1px solid var(--t7-gray-200);
    border-radius: 6px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    font-size: 11px;
    color: #334155;
    transition: border-color .2s;
    font-family: 'Inter', sans-serif;
}
.t7-pay-badge:hover { border-color: var(--t7-green); }
.t7-pay-badge .iconify { font-size: 16px; }

/* ---- Certification Badges ---- */
.t7-cert-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding-bottom: 28px;
}
.t7-cert-badge {
    padding: 6px 14px;
    background: var(--t7-dk-700);
    border: 1px solid rgba(55, 65, 81, .5);
    border-radius: 6px;
    color: var(--t7-gray-400);
    font-size: 11px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
}
.t7-age18 {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 11px;
    font-weight: 800;
    color: #ef4444;
    line-height: 1.1;
}

/* ---- Copyright ---- */
.t7-copyright {
    text-align: center;
    padding-top: 20px;
}
.t7-copyright p {
    font-size: 11px;
    color: var(--t7-gray-500);
    font-family: 'Inter', sans-serif;
}
.t7-disclaimer {
    font-size: 10px;
    color: var(--t7-gray-600);
    max-width: 640px;
    margin: 6px auto 0;
    line-height: 1.6;
}

/* ============================================================
   FLOATING WHATSAPP BUTTON
   ============================================================ */
.t7-wa-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 2000;
    width: 52px;
    height: 52px;
    background: #22c55e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(34, 197, 94, .4);
    text-decoration: none;
    transition: background .2s;
    animation: t7-pulse-green 2s infinite;
}
.t7-wa-float:hover { background: #16a34a; }
.t7-wa-float .iconify {
    font-size: 26px;
    color: #fff;
}
@keyframes t7-pulse-green {
    0%   { box-shadow: 0 0 0 0    rgba(34, 197, 94, .5); }
    70%  { box-shadow: 0 0 0 14px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0    rgba(34, 197, 94, 0); }
}

/* ============================================================
   WP ADMIN BAR COMPATIBILITY
   When an admin is logged in, WordPress fixes #wpadminbar at
   top:0 (32px tall) and adds padding-top:32px to <html>.
   Shift our fixed header down so it sits below the admin bar.
   ============================================================ */
.admin-bar .t7-header {
    top: 32px;
}
/* WP admin bar collapses on screens ≤ 782px */
@media screen and (max-width: 782px) {
    .admin-bar .t7-header {
        top: 0;
    }
}
