:root {
    --primary: #c60000;
    --secondary: #181818;
    --accent: #292929;
    --text: #f5f5f5;
    --muted: #aaa;
    --shard-color: #4a86e8;
    --bloodpoints: #c60000;
    --cosmetic: #e67e22;
    --charm: #2ecc71;
    --badge: #9b59b6;
    --success: #27ae60;
    --border-color: #333;
    --card-bg: #1a1a1a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0e0e0e;
    color: var(--text);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Sticky Footer */
main,
body > .container {
    flex: 1;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 25px;
    align-items: start;
    margin-top: 20px;
}

.content-area {
    overflow: hidden;
}

/* Header */
header {
    background: var(--secondary);
    padding: 15px 0;
    border-bottom: 3px solid var(--primary);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.site-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text);
    background: linear-gradient(90deg, var(--primary), #ff4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    color: var(--muted);
    font-size: 0.85rem;
    margin-top: 4px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

nav a {
    color: var(--text);
    text-decoration: none;
    position: relative;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s;
}

nav a:hover {
    background: rgba(198, 0, 0, 0.2);
}

nav a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    z-index: 101;
    transition: color 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 100px 20px;
    background-color: #0a0a0a;
    /* Dark radial gradient background */
    background-image: radial-gradient(circle at center, #1a0505 0%, #000000 100%);
    border-bottom: 1px solid #333;
    overflow: hidden;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: inset 0 -20px 50px -20px #000;
}

/* Background Texture/Fog */
.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0IiBoZWlnaHQ9IjQiPgo8cmVjdCB3aWR0aD0iNCIgaGVpZ2h0PSI0IiBmaWxsPSIjZmZmIiBmaWxsLW9wYWNpdHk9IjAuMDUiLz4KPC9zdmc+');
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
}

/* Red Glow at bottom */
.hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    box-shadow: 0 0 20px 5px rgba(198, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 5px 15px rgba(0,0,0,0.8);
    line-height: 1.1;
}

.hero h1 .date-highlight {
    display: block;
    font-size: 0.5em;
    color: var(--primary);
    letter-spacing: 6px;
    margin-top: 10px;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(198, 0, 0, 0.6);
}

.hero p {
    font-size: 1.2rem;
    color: #ccc;
    margin: 0 auto 30px;
    max-width: 700px;
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.month-display {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(198, 0, 0, 0.3);
    padding: 12px 30px;
    border-radius: 4px;
    color: #eee;
    font-weight: 600;
    font-size: 0.95rem;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
}

.month-display:hover {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(198, 0, 0, 0.2);
    transform: translateY(-2px);
}

.month-display i {
    color: var(--primary);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--success);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.7); }
    70% { opacity: 1; box-shadow: 0 0 0 10px rgba(39, 174, 96, 0); }
    100% { opacity: 1; box-shadow: 0 0 0 0 rgba(39, 174, 96, 0); }
}

@media (max-width: 768px) {
    .hero { padding: 60px 20px; }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }
}

/* Content Sections */
.section-title {
    margin: 30px 0 15px;
    font-size: 1.8rem;
    border-left: 4px solid var(--primary);
    padding-left: 12px;
    position: relative;
}


/* Search & Filters */
.search-box {
    width: 100%;
    max-width: 400px;
    margin-bottom: 20px;
    position: relative;
}

.search-box input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 15px 12px 40px;
    border-radius: 5px;
    border: 1px solid #333;
    background: var(--accent);
    color: var(--text);
    font-size: 1rem;
    transition: all 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(198, 0, 0, 0.2);
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
}

.filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 15px;
    background: var(--accent);
    border: 1px solid #333;
    border-radius: 4px;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
}

.filter-btn[data-filter="bloodpoints"].active {
    background: var(--bloodpoints);
}

.filter-btn[data-filter="shards"].active {
    background: var(--shard-color);
}

.filter-btn[data-filter="cosmetic"].active {
    background: var(--cosmetic);
}

.filter-btn[data-filter="charm"].active {
    background: var(--charm);
}

.filter-btn[data-filter="badge"].active {
    background: var(--badge);
}

/* Coupon Grid */
.coupon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.coupon-card {
    margin-top:3px;
    background: var(--secondary);
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.coupon-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 10px rgba(198, 0, 0, 0.4);
}

.shard-card {
    border-left: 4px solid var(--shard-color);
}

.new-badge {
    position: absolute;
    top: 10px;
    right: -25px;
    background: var(--primary);
    color: white;
    padding: 4px 30px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: bold;
    text-align: center;
    transform: rotate(45deg);
    transform-origin: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    z-index: 2;
}

.shard-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--shard-color);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: bold;
    z-index: 1;
}

.coupon-header {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--primary);
    line-height: 1.3;
    padding-right: 20px;
}

.shard-header {
    color: var(--shard-color);
}

.coupon-desc {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.coupon-code {
    text-align: center;
    background: #1d1d1d;
    border: 1px dashed var(--primary);
    padding: 10px;
    border-radius: 5px;
    font-size: 1.1rem;
    font-family: monospace;
    letter-spacing: 1px;
    margin-bottom: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: all 0.3s;
}

.shard-code {
    border-color: var(--shard-color);
}

.coupon-code:hover {
    background: #252525;
    transform: scale(1.02);
}

.btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s, transform 0.2s;
    width: 100%;
    font-size: 0.95rem;
}

.btn-shard {
    background: var(--shard-color);
}

.btn-shard:hover {
    background: #5a96f0;
}

.btn:hover {
    background: #e00000;
    transform: translateY(-2px);
}

/* Ad inside Coupon Grid */
.coupon-grid-ad {
    grid-column: 1 / -1;
    width: 100%;
    margin: 10px 0;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    gap: 5px;
}

.pagination button {
    padding: 8px 15px;
    background: var(--accent);
    border: 1px solid #333;
    border-radius: 4px;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s;
}

.pagination button.active {
    background: var(--primary);
    border-color: var(--primary);
}

.pagination button:hover:not(.active) {
    background: rgba(198, 0, 0, 0.2);
}

/* Optimized Ad Styles */
.ad-container {
    width: 100%;
    margin: 1.5rem 0;
    text-align: center;
    position: relative;
}

.ad-label {
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: 8px;
    text-align: center;
    width: 100%;
}

/* In-content Ads */
.in-content-ad {
    background: var(--secondary);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s;
    width: 100%;
}

.in-content-ad:hover {
    transform: translateY(-3px);
}

/* Sidebar Ads - STICKY */
.sidebar {
    /* Layout container only - matching Vic Viper page */
    width: 300px;
    min-width: 300px;
    position: relative;
}

.sidebar-ad {
    margin-bottom: 25px;
    text-align: center;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #1a1a1a;
    border-radius: 6px;
    padding: 15px;
    transition: transform 0.3s;
    width: 100%;
    min-width: 300px;
    position: relative;
}

.sticky-ad {
    position: sticky;
    top: 80px;
    z-index: 99;
}

.sidebar-ad:hover {
    transform: translateY(-3px);
}

.sidebar-ad:last-child {
    margin-bottom: 0;
}

/* Multiplex Ad Styling */
.multiplex-ad {
    background: var(--secondary);
    border-radius: 8px;
    padding: 15px;
    margin: 1.5rem 0;
    border: 1px solid #333;
    width: 100%;
}

/* Ad Placeholder */
.ad-placeholder {
    width: 100%;
    background: linear-gradient(135deg, #2d3748, #4a5568);
    border: 1px dashed var(--muted);
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    color: var(--muted);
    min-height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.ad-placeholder i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

/* Content Sections */
.content-section {
    margin-bottom: 2rem;
}

.content-image {
    width: 100%;
    max-width: 800px;
    display: block;
    margin: 0 auto 20px;
    border-radius: 8px;
    border: 1px solid #333;
}

/* Support Notice */
.support-notice {
    background: linear-gradient(90deg, rgba(198, 0, 0, 0.1), rgba(198, 0, 0, 0.05));
    border: 1px solid rgba(198, 0, 0, 0.3);
    padding: 12px 0;
    margin-bottom: 20px;
    text-align: center;
}

.support-notice p {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.support-notice i {
    color: var(--primary);
    font-size: 0.8rem;
}

/* FAQ */
.faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
}

.faq-question {
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 8px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}

.faq-question:hover {
    color: #ff4444;
}

.faq-answer {
    color: var(--muted);
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.external-links {
    list-style-type: disc;
    padding-left: 20px;
}

.external-links li a {
    color: var(--text);
    transition: color 0.3s;
}

.external-links li a:hover {
    color: var(--primary);
}

/* Footer */
footer {
    margin-top: 50px;
    background: var(--secondary);
    padding: 30px;
    border-top: 3px solid var(--primary);
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
}

footer ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 10px;
}

footer a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    background: var(--success);
    color: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1000;
}

.toast.show {
    opacity: 1;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 2rem;
    color: var(--muted);
    font-style: italic;
    grid-column: 1 / -1;
}

/* Link Styles */
.viper-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.8rem;
    padding: 5px 10px;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s;
    display: inline-block;
}

.viper-link:hover, .viper-link:focus {
    background: rgba(198, 0, 0, 0.2);
    color: #ffeaea;
    text-decoration: underline;
}

/* Bloodpoint Bonus Styles */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.last-checked {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: var(--muted);
    background: rgba(0, 0, 0, 0.05);
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.bp-bonus-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.bp-bonus-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bp-bonus-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.bp-bonus-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.bp-bonus-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 8px 12px;
    border-radius: 6px;
}

.bp-bonus-status.active {
    background-color: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.bp-bonus-status.inactive {
    background-color: rgba(158, 158, 158, 0.1);
    border: 1px solid rgba(158, 158, 158, 0.3);
}

.bp-bonus-badge {
    font-size: 0.8rem;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
}

.bp-bonus-status.active .bp-bonus-badge {
    background-color: #4CAF50;
    color: white;
}

.bp-bonus-status.inactive .bp-bonus-badge {
    background-color: #9E9E9E;
    color: white;
}

.bp-bonus-value {
    font-weight: bold;
    font-size: 1rem;
}

.bp-bonus-status.active .bp-bonus-value {
    color: #4CAF50;
}

.bp-bonus-status.inactive .bp-bonus-value {
    color: #9E9E9E;
}

/* Player Info */
.player-info {
    background: rgba(33, 150, 243, 0.05);
    border: 1px solid rgba(33, 150, 243, 0.2);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.player-details {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.rank-badge, .server-badge {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin: 3px;
    font-weight: bold;
}

.server-badge {
    background: #4CAF50;
}

.player-note {
    font-size: 0.85rem;
    color: var(--muted);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Disclaimer */
.bp-disclaimer {
    background: rgba(255, 152, 0, 0.05);
    border: 1px solid rgba(255, 152, 0, 0.3);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.disclaimer-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #FF9800;
}

.disclaimer-header h4 {
    margin: 0;
    font-size: 1.1rem;
}

.bp-disclaimer p {
    margin-bottom: 15px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.bp-disclaimer ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.bp-disclaimer li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.bp-disclaimer li i {
    color: #FF9800;
    width: 16px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        display: none; /* Hide ALL sidebar ads on mobile */
    }
    
    .sidebar-ad, .sticky-ad {
        height: auto;
        min-height: 250px;
        margin-bottom: 0;
        width: 100%;
        min-width: unset;
    }
}

@media (max-width: 768px) {
    .coupon-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 15px;
    }
    
    .header-container {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
    }

    .header-container > div:first-child {
        flex: 1;
        min-width: 0;
        padding-right: 15px;
    }

    .hamburger {
        display: block;
    }

    nav {
        width: 100%;
        order: 3;
    }
    
    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        padding-top: 15px;
        gap: 15px;
        text-align: center;
        border-top: 1px solid #333;
        margin-top: 10px;
    }

    nav ul.active {
        display: flex;
        animation: fadeIn 0.3s ease-in-out;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .sidebar {
        grid-template-columns: 1fr;
    }

    /* Hide 3rd and 4th sidebar ads on mobile to improve viewability */
    .sidebar .ad-container:nth-child(n+3) {
        display: none;
    }

    .sidebar-ad {
        min-height: 100px;
        max-height: 200px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .bp-bonus-container {
        grid-template-columns: 1fr;
    }

    .player-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .coupon-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .filters {
        flex-direction: column;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .search-box input {
        font-size: 0.95rem;
        padding: 10px 12px 10px 36px;
    }
}

/* Ensure ads have proper dimensions */
ins.adsbygoogle {
    display: block !important;
    width: 100% !important;
}


/* Content Sections */
.content-section {
  margin-bottom: 2rem;
}

.content-section h3 {
  margin: 1.5rem 0 1rem;
  color: var(--text);
  border-left: 3px solid var(--primary);
  padding-left: 10px;
}

/* List Styles - FIXED */
.content-section ol,
.content-section ul {
  margin: 15px 0;
  padding-left: 40px;
  color: var(--muted);
}

.content-section ol {
  margin: 15px 0;
  padding-left: 40px;
  color: var(--text);
}
.content-section ul {
  margin: 15px 0;
  padding-left: 40px;
  color: var(--muted);
}

.content-section ol {
  list-style-type: decimal;
}

.content-section ul {
  list-style-type: disc;
}

.content-section li {
  margin-bottom: 8px;
  line-height: 1.5;
}
.content-section strong {
  color: var(--text);
  font-weight: 600;
}

.content-section em {
  color: var(--muted);
  font-style: italic;
}
