/* --- RESET & BASICS --- */
:root {
    --bg-dark: #121212;
    --bg-card: #1e1e1e;
    --bg-lighter: #2a2a2a;
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
    --accent-red: #c00d0d;
    --accent-red-hover: #e01010;
    --gold: #FFD700;
    --border-color: #333;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { background-color: var(--bg-dark); color: var(--text-main); font-family: 'Inter', sans-serif; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { color: #fff; margin-top: 40px; margin-bottom: 15px; }
h1 { font-size: 2.2rem; line-height: 1.2; margin-top: 10px;}
h2 { font-size: 1.8rem; border-bottom: 2px solid var(--accent-red); padding-bottom: 10px; display: inline-block; }
h3 { font-size: 1.4rem; color: #fff; margin-top: 30px;}
p, li { color: var(--text-muted); margin-bottom: 15px; font-size: 1rem; }
ul { margin-left: 20px; margin-bottom: 20px; }
strong { color: #fff; font-weight: 700; }

/* --- LAYOUT UTILITIES --- */
.container { width: 92%; max-width: 1100px; margin: 0 auto; }
.text-center { text-align: center; }

/* --- HEADER --- */
.site-header { background-color: #000; border-bottom: 1px solid var(--border-color); padding: 15px 0; position: sticky; top: 0; z-index: 100; }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.desktop-nav a { color: var(--text-main); margin: 0 15px; font-size: 0.9rem; font-weight: 600; text-transform: uppercase; transition: color 0.3s; }
.desktop-nav a:hover { color: var(--accent-red); }

/* --- IMAGE LOGO STYLES --- */
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 40px; /* Standard Desktop Height */
    width: auto;  /* Maintains aspect ratio */
    display: block;
}

/* --- BUTTONS --- */
.btn { display: inline-block; background-color: var(--accent-red); color: #fff; padding: 12px 25px; border-radius: 4px; font-weight: 700; text-transform: uppercase; font-size: 0.9rem; transition: background 0.3s; text-align: center; border: none; cursor: pointer;}
.btn:hover { background-color: var(--accent-red-hover); }

/* --- HERO --- */
.hero { padding: 40px 0 20px; background: linear-gradient(180deg, #000 0%, #121212 100%); }

/* --- TOP 3 BRAND CARDS (THE "INTRO TABLE") --- */
.top-brands-section { margin-bottom: 60px; }
.brand-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Rank Badge */
.brand-rank {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 40px;
    height: 40px;
    background: var(--accent-red);
    color: white;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    font-size: 1.2rem;
    z-index: 2;
}

/* Gold Style for #1 */
.brand-card.rank-1 { border: 2px solid var(--gold); background: linear-gradient(90deg, #1e1e1e 0%, #252515 100%); }
.brand-card.rank-1 .brand-rank { background: var(--gold); color: #000; }

.brand-info { flex: 2; padding: 0 20px; }
.brand-name { font-size: 1.5rem; font-weight: 800; color: #fff; display: block; margin-bottom: 5px; }
.brand-tag { color: var(--gold); font-size: 0.9rem; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; }
.brand-features { display: flex; gap: 20px; margin-top: 10px; }
.feature-item { font-size: 0.85rem; color: var(--text-muted); display: flex; align-items: center; }
.feature-item span { color: #fff; margin-left: 5px; }

.brand-bonus { flex: 1; text-align: center; padding: 0 20px; border-left: 1px solid #333; border-right: 1px solid #333; }
.bonus-amount { font-size: 1.3rem; font-weight: 800; color: #fff; display: block; }
.bonus-sub { font-size: 0.8rem; color: var(--text-muted); }

.brand-action { flex: 1; text-align: center; padding-left: 20px; }
.brand-action .btn { width: 100%; display: block; margin-bottom: 8px; }
.secure-link { font-size: 0.75rem; color: #4CAF50; display: flex; align-items: center; justify-content: center; gap: 5px; }

/* --- DATA TABLES (Styling for PDF Tables) --- */
.table-wrapper { overflow-x: auto; margin-bottom: 40px; border-radius: 6px; border: 1px solid var(--border-color); }
.data-table { width: 100%; border-collapse: collapse; min-width: 600px; /* Forces scroll on mobile */ }
.data-table th, .data-table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #333; }
.data-table th { background-color: #000; color: #fff; font-weight: 600; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.5px; }
.data-table tr:nth-child(even) { background-color: var(--bg-lighter); }
.data-table tr:hover { background-color: #333; }
.data-table td { font-size: 0.95rem; color: var(--text-muted); }
.data-table td strong { color: #fff; }

/* Status Colors in Tables */
.status-green { color: #4CAF50; font-weight: bold; }
.status-red { color: #ff4444; font-weight: bold; }
.status-yellow { color: var(--gold); font-weight: bold; }

/* --- CONTENT BOXES --- */
.content-section { padding-bottom: 40px; border-bottom: 1px solid #222; margin-bottom: 40px; }
blockquote { border-left: 4px solid var(--accent-red); padding-left: 20px; margin: 30px 0; font-style: italic; color: #fff; background: #1a1a1a; padding: 20px; border-radius: 0 4px 4px 0; }

/* --- FOOTER --- */
footer { background-color: #0d0d0d; padding: 50px 0 20px; border-top: 1px solid var(--border-color); font-size: 0.9rem; text-align: center; }

.copyright { color: #555; padding-top: 20px; }

/* --- IMPRESSUM MODAL --- */
.modal-backdrop {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Dark transparent background */
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 30px;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    color: var(--text-muted);
}

.modal-content h3 {
    margin-top: 0;
    color: #fff;
    border-bottom: 1px solid var(--accent-red);
    padding-bottom: 10px;
}

.modal-content strong {
    color: #fff;
}

/* Close Button (X) */
#close-modal {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

#close-modal:hover {
    color: var(--accent-red);
}

/* --- MOBILE ADAPTATION --- */
@media (max-width: 768px) {
    /* 1. Hide Desktop Menu */
    .desktop-nav { display: none; }
    
    /* 2. Shrink Logo slightly to make room for 2 buttons */
    .logo-img {
        /* Smaller on mobile to fit the two buttons next to it */
        height: 28px; 
        margin-right: 5px;
    }

    /* 3. Header Buttons Container */
    .header-buttons {
        display: flex;
        gap: 5px; /* Tiny gap between buttons */
    }

    /* 4. Make Header Buttons Compact */
    .site-header .btn {
        width: auto;
        padding: 6px 8px;      /* Very tight padding */
        font-size: 0.65rem;    /* Smaller text to fit "TWINT Bonuses" */
        white-space: nowrap;   /* Prevents text breaking into 2 lines */
        height: auto;
    }
    
    .hero h1 { font-size: 1.8rem; }
    
    /* Brand Cards Mobile Stack */
    .brand-card { flex-direction: column; text-align: center; gap: 15px; padding-top: 35px; }
    .brand-rank { left: 50%; transform: translateX(-50%); top: -15px; }
    .brand-info, .brand-bonus, .brand-action { border: none; padding: 0; width: 100%; }
    .brand-features { justify-content: center; flex-wrap: wrap; gap: 10px; }
    .brand-bonus { background: #252525; padding: 10px; border-radius: 4px; margin: 5px 0; }
    
    /* Table Adjustments */
    .data-table th, .data-table td { padding: 10px; font-size: 0.85rem; }
}