/* 
    GAMBLE TIPS SA - CONSOLIDATED PREMIUM DESIGN SYSTEM
    ---------------------------------------------
    Slate-Navy & Emerald | Comparison Matrix | 3D Hero
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --color-primary: #00ff88;
    --color-bg: #0f172a;
    --color-surface: #1e293b;
    --color-text: #f8fafc;
    --color-text-muted: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.1);
    --radius: 24px;
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- BASE --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    background-color: #ffffff;
    color: var(--color-text);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}
h1, h2, h3, .logo { font-family: 'Outfit', sans-serif; letter-spacing: -0.02em; }
a { text-decoration: none; color: inherit; transition: var(--transition); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 120px 0; }
.section-alt { padding: 100px 0; background: rgba(0, 255, 136, 0.02); }

/* --- HEADER --- */
header {
    position: sticky !important;
    top: 0 !important;
    width: 100%;
    height: 100px !important;
    background: #ffffff;
    z-index: 2000;
    display: flex;
    align-items: center;
    overflow: visible !important;
    box-sizing: border-box;
    transition: all 0.3s ease;
}
header.scrolled {
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.main-wrapper {
    background: var(--color-bg);
    margin: 0 20px 20px;
    border-radius: 40px;
    overflow: hidden;
    min-height: 100vh;
}

.nav-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
    overflow: visible !important;
}

.nav-links-left, .nav-links-right {
    display: flex;
    align-items: center;
    gap: 30px;
    flex: 1;
}
.nav-links-right { justify-content: flex-end; }

.logo-center {
    display: flex;
    justify-content: center;
    flex: 0 0 auto;
}

.nav-item {
    font-size: 0.95rem;
    font-weight: 750;
    color: #0f172a;
    padding: 8px 0;
    text-transform: none;
    letter-spacing: -0.01em;
    position: relative;
    transition: color 0.3s ease;
    cursor: pointer;
}
.nav-item:hover { color: #00ff88; }
.nav-item::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #00ff88;
    transition: width 0.3s ease;
}
.nav-item:hover::after { width: 100%; }

.mobile-nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.mobile-nav-toggle span { display: block; width: 25px; height: 2px; background: #000; margin: 5px 0; }

.chevron { font-size: 0.7rem; transition: transform 0.2s; display: inline-block; margin-left: 2px; }
.dropdown:hover .chevron { transform: rotate(180deg); }

/* Dropdown System */
.dropdown {
    position: relative;
    overflow: visible !important;
}

.dropdown-content {
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    min-width: 320px !important;
    padding: 12px !important;
    border-radius: 24px !important;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15) !important;
    z-index: 99999 !important;
    display: none !important;
}

.dropdown:hover .dropdown-content,
.dropdown.active .dropdown-content {
    display: block !important;
}

.dd-item {
    display: block;
    padding: 14px 18px;
    border-radius: 16px;
    transition: background 0.2s ease;
    color: #0f172a;
    text-align: left;
}
.dd-item:hover { background: #f1f5f9; }

.dd-title {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    color: #0f172a;
}
.dd-desc {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 4px;
}

/* Dropdown section header */
.dropdown-header {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-text-muted);
    padding: 4px 10px 8px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--glass-border);
}

/* Dropdown item */
.dd-item {
    display: block;
    padding: 14px 18px;
    border-radius: 16px;
    transition: all 0.2s ease;
    color: #0f172a;
    text-align: left;
}
.dd-item:hover {
    background: #f1f5f9;
}
.dd-title {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    color: #0f172a;
    line-height: 1.2;
}
.dd-desc {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
    margin-top: 4px;
    line-height: 1.4;
}
.dd-icon, .dd-text small { display: none; }
.dd-text strong { display: inline; font-size: inherit; }

@keyframes navFade {
    from { opacity: 0; transform: translateX(-50%) translateY(8px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* --- PREMIUM COMPARISON TABLE --- */
.comparison-table-wrapper {
    background: var(--color-surface);
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
    overflow: hidden;
    margin: 40px 0;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
table { width: 100%; border-collapse: separate; border-spacing: 0; text-align: left; }
th { 
    background: rgba(15, 23, 42, 0.4); padding: 20px 24px; font-weight: 800; 
    font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--color-primary);
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
}
td { padding: 24px; border-bottom: 1px solid rgba(255,255,255,0.05); vertical-align: middle; transition: var(--transition); }
tr { transition: var(--transition); }
tr:hover { background: rgba(255, 255, 255, 0.015); }
tr:last-child td { border-bottom: none; }

.rank { 
    font-size: 1.6rem; 
    font-weight: 900; 
    color: #fff; 
    opacity: 0.6; 
    text-align: center;
    background: rgba(255, 255, 255, 0.01);
    border-right: 1px solid rgba(255, 255, 255, 0.03);
    width: 80px;
}
tr:first-child td.rank {
    color: var(--color-primary);
    opacity: 1;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.bookie-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 280px;
}
.bookie-name { font-weight: 800; font-size: 1.25rem; color: #ffffff; letter-spacing: -0.02em; }
.bonus { color: #fff; font-weight: 800; font-size: 1.15rem; }

/* Custom Sleek Gradient Badges */
.badge {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.15) 0%, rgba(0, 255, 136, 0.05) 100%);
    color: var(--color-primary);
    border: 1px solid rgba(0, 255, 136, 0.3);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: inline-block;
    box-shadow: 0 2px 10px rgba(0, 255, 136, 0.05);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
}

/* Custom CSS Logo Blocks for Betway & Easybet */
.brand-logo-block {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    width: 180px;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: -0.04em;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: var(--transition);
    user-select: none;
}
.brand-logo-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}

.logo-betway {
    background: linear-gradient(135deg, #000000 0%, #151515 100%);
    border: 1px solid rgba(0, 255, 136, 0.4);
    color: #ffffff;
    text-transform: lowercase;
}
.logo-betway .brand-logo-text {
    position: relative;
}
.logo-betway .brand-logo-text::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #00ff88;
    border-radius: 50%;
    margin-left: 2px;
    box-shadow: 0 0 8px #00ff88;
}

.logo-easybet {
    background: linear-gradient(135deg, #0c1017 0%, #1a202c 100%);
    border: 1px solid #eab308;
    color: #ffffff;
}
.logo-easybet .easy-part {
    color: #ffffff;
}
.logo-easybet .bet-part {
    color: #fbbf24;
    font-weight: 900;
    margin-left: 1px;
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.4);
}

/* --- CARDS & GRIDS --- */
.grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; }
.glass-card { background: var(--color-surface); border: 1px solid var(--glass-border); border-radius: var(--radius); padding: 40px; transition: var(--transition); }
.glass-card:hover { border-color: var(--color-primary); transform: translateY(-8px); }

.banner-box, .goldrush-banner-wrap { width: 100%; display: block; text-align: center; }
.banner-box img, .goldrush-banner-wrap img { max-width: 100% !important; height: auto !important; border-radius: 8px; margin: 0 auto; transition: var(--transition); }
.banner-box iframe { width: 100%; border: none; min-height: 100px; }

/* --- PREMIUM DEEP DIVE CARDS --- */
.detailed-card {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 40px;
    align-items: center;
    border-radius: var(--radius);
    background: var(--color-surface);
    border: 1px solid var(--glass-border);
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}
.detailed-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 255, 136, 0.08);
}
.card-identity-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.card-brand-title {
    font-size: 1.8rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.card-rank {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 1.25rem;
    color: #0f172a;
    background: var(--color-primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
}

/* Custom Vector SVG Circular List Checkmarks */
.deep-dive-list {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}
.deep-dive-list li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 12px;
    color: var(--color-text-muted);
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
}
.deep-dive-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3px;
    width: 20px;
    height: 20px;
    background: rgba(0, 255, 136, 0.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300ff88' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center center;
    background-size: 11px;
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.1);
}

.card-actions-row {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 28px; border-radius: 12px; font-weight: 800; cursor: pointer; transition: var(--transition);
    font-size: 0.95rem; border: none; outline: none;
}
.btn-primary { 
    background: var(--color-primary); 
    color: #0f172a !important; 
    box-shadow: 0 4px 14px rgba(0, 255, 136, 0.25);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.4);
    background: #05ff8c;
}
.btn-outline { 
    border: 2px solid var(--glass-border); 
    color: #fff !important; 
    background: transparent; 
}
.btn-outline:hover { 
    border-color: var(--color-primary); 
    color: var(--color-primary) !important; 
    background: rgba(0, 255, 136, 0.05); 
    transform: translateY(-2px);
}

/* --- MOBILE & RESPONSIVE COMPLETENESS --- */
@media (max-width: 768px) {
    header { height: 70px; border-radius: 12px; top: 10px; }
    .nav-pill { grid-template-columns: 1fr auto 1fr; padding: 0 15px; }
    .nav-links-left, .nav-links-right { display: none; }
    .logo-center img { height: 60px !important; }
    .mobile-nav-toggle { display: block; }
    
    .nav-links-left.active {
        display: flex; position: absolute; top: 80px; left: 0; right: 0;
        background: #fff; flex-direction: column; padding: 20px;
        border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        z-index: 2000;
    }
    
    /* Table to Card conversion (ONLY INSIDE MEDIA QUERY) */
    table, tbody, tr, td { display: block; width: 100% !important; }
    thead { display: none; }
    
    .comparison-table-wrapper {
        background: transparent;
        box-shadow: none;
        border: none;
        margin: 20px 0;
    }
    
    tr { 
        margin-bottom: 24px; 
        padding: 24px; 
        background: var(--color-surface); 
        border: 1px solid var(--glass-border);
        border-radius: var(--radius); 
        position: relative;
        box-shadow: 0 10px 25px rgba(0,0,0,0.3);
        overflow: hidden;
    }
    tr:hover {
        border-color: var(--color-primary);
    }
    
    /* Absolute Floating Rank Badge on Mobile Cards */
    td.rank { 
        position: absolute;
        top: 0;
        left: 0;
        background: var(--color-primary) !important;
        color: #0f172a !important;
        font-weight: 900;
        font-size: 1.15rem;
        padding: 8px 18px !important;
        border-bottom-right-radius: 16px;
        width: auto !important;
        height: auto !important;
        opacity: 1 !important;
        z-index: 5;
        border: none !important;
    }
    td.rank::before { display: none !important; }
    
    td { 
        padding: 12px 0 !important; 
        border: none !important; 
        display: flex; 
        flex-direction: row; 
        justify-content: space-between; 
        align-items: center; 
        border-bottom: 1px solid rgba(255,255,255,0.05) !important;
        text-align: right;
    }
    
    /* Key-Value formatting for mobile cards */
    td::before {
        content: attr(data-label); 
        font-weight: 800; 
        font-size: 0.75rem; 
        text-transform: uppercase; 
        color: var(--color-text-muted);
        text-align: left;
    }
    
    /* Hide label on full-width columns */
    td[data-label="Bookmaker"]::before, 
    td[data-label="Action"]::before { 
        display: none !important; 
    }
    
    /* Bookmaker logo block spacing on Mobile */
    td[data-label="Bookmaker"] {
        flex-direction: column !important;
        align-items: center !important;
        padding-top: 40px !important; /* spacing for rank */
        gap: 10px;
        border-bottom: 1px solid rgba(255,255,255,0.1) !important;
        padding-bottom: 20px !important;
    }
    .bookie-info {
        width: 100%;
        align-items: center;
    }
    .brand-logo-block {
        width: 100%;
        max-width: 220px;
    }
    
    /* Hide actions border */
    td:last-child {
        border-bottom: none !important;
        padding-top: 16px !important;
        display: block !important;
    }
    
    td[data-label="Action"] > div {
        width: 100%;
        display: flex;
        gap: 12px !important;
    }
    td[data-label="Action"] .btn {
        flex: 1;
        padding: 12px 8px !important;
        font-size: 0.85rem !important;
        border-radius: 10px;
    }
    
    /* Detailed deep dive cards on mobile */
    .detailed-card {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px;
    }
    .card-actions-row {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    .card-actions-row .btn {
        width: 100%;
    }
    
    /* General mobile nav elements */
    .mobile-nav-toggle { display: block; background: none; border: none; cursor: pointer; }
    .mobile-nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: 0.3s; }
    .nav-links {
        position: fixed; top: 64px; left: 0; width: 100%;
        background: rgba(15,23,42,0.98); backdrop-filter: blur(20px);
        flex-direction: column; align-items: stretch; padding: 20px; display: none; z-index: 1999;
        border-top: 1px solid var(--glass-border); gap: 4px;
    }
    .nav-links.active { display: flex; }
    .nav-item { padding: 12px 16px; font-size: 0.95rem; border-radius: 10px; }
    .dropdown { position: static; }
    .dropdown-content {
        position: static; transform: none; display: none;
        box-shadow: none; background: rgba(255,255,255,0.04);
        border: none; border-radius: 10px; padding: 6px; margin: 4px 0 4px 8px;
    }
    .dropdown:hover .dropdown-content { display: none; }
    .dropdown.open .dropdown-content { display: block; }
    .dropdown-trigger { cursor: pointer; }
}

/* ==========================================================================
   PREMIUM NEWSLETTER SUBSCRIPTION MODAL (GLASSMORPHISM)
   ========================================================================== */
.sub-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 12, 23, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.sub-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.sub-modal-card {
    background: linear-gradient(135deg, rgba(20, 28, 48, 0.95), rgba(10, 15, 28, 0.98));
    border: 1px solid rgba(0, 255, 136, 0.25);
    border-radius: 28px;
    padding: 48px 36px;
    max-width: 440px;
    width: 90%;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 50px rgba(0, 255, 136, 0.15);
    transform: scale(0.85) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.sub-modal-overlay.active .sub-modal-card {
    transform: scale(1) translateY(0);
}

.sub-modal-card::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.sub-modal-icon-container {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(0, 255, 136, 0.1);
    border: 2px solid rgba(0, 255, 136, 0.3);
    margin: 0 auto 28px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.1);
    animation: sub-pulse 2s infinite;
}

.sub-modal-icon-container svg {
    color: var(--color-primary);
    filter: drop-shadow(0 0 8px rgba(0, 255, 136, 0.5));
}

@keyframes sub-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.3);
    }
    70% {
        box-shadow: 0 0 0 18px rgba(0, 255, 136, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0);
    }
}

.sub-modal-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.85rem;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(120deg, #fff 30%, #00ff88 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sub-modal-desc {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 32px;
}

.sub-modal-btn {
    width: 100%;
    padding: 14px 28px;
    background: var(--color-primary);
    color: #0f172a !important;
    border: none;
    border-radius: 14px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.25);
    transition: all 0.3s ease;
}

.sub-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(0, 255, 136, 0.45);
    background: #05ff8c;
}

