/* =======================
   AREOS RSPS - MODERN UNIFIED STYLES
   Responsive, Mobile-First Design
======================= */

/* =======================
   FONTS
======================= */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Jaro&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Uncial+Antiqua&display=swap');
@import url('https://fonts.googleapis.com/css2?family=UnifrakturCook:wght@700&display=swap');

/* =======================
   GLOBAL RESET & BASE
======================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cinzel', serif;
    background-color: #0b0b0d;
    color: #e6e6e6;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* =======================
   TYPOGRAPHY
======================= */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Jaro', sans-serif;
    font-weight: normal;
    text-transform: uppercase;
}

.mmorpg-font {
    font-family: 'UnifrakturCook', cursive;
}

.intro-title {
    font-family: 'Uncial Antiqua', system-ui;
    font-weight: normal;
}

/* =======================
   NAVIGATION
======================= */
.navbar {
    font-family: 'Jaro', sans-serif;
    background-color: transparent;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #b11226;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo img {
    height: 40px;
    transition: transform 0.3s ease;
}

.navbar-logo:hover img {
    transform: scale(1.05);
}

.navbar-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.navbar-menu a {
    color: #e6e6e6;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    padding: 0.5rem 0;
    position: relative;
}

.navbar-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #b11226;
    transition: width 0.3s ease;
}

.navbar-menu a:hover::after,
.navbar-menu a.active::after {
    width: 100%;
}

.navbar-auth {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.navbar-auth a {
    font-size: 0.9rem;
}

.navbar-auth .login {
    color: #e6e6e6;
}

.navbar-auth .register {
    color: #b11226;
    font-weight: bold;
}

.navbar-auth .register:hover {
    color: #e01935;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* =======================
   BUTTONS
======================= */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 6px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
    font-family: 'Jaro', sans-serif;
}

.primary-btn {
    background: #b11226;
    color: #fff;
    box-shadow: 0 4px 15px rgba(177, 18, 38, 0.3);
}

.primary-btn:hover {
    background: #e01935;
    box-shadow: 0 6px 20px rgba(224, 25, 53, 0.5);
    transform: translateY(-2px);
}

.secondary-btn {
    border: 2px solid #b11226;
    color: #fff;
    background: transparent;
}

.secondary-btn:hover {
    background: #b11226;
    box-shadow: 0 4px 15px rgba(177, 18, 38, 0.4);
    transform: translateY(-2px);
}

/* =======================
   HERO SECTION
======================= */
.hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Shows entire video */
    z-index: 0;
}

.hero-dark {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-overlay {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    text-align: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.player-count {
    font-family: 'Cinzel', serif;
    text-align: center;
    margin-bottom: 1rem;
}

.player-count p:first-child {
    font-size: clamp(32px, 5vw, 46px);
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.player-count span {
    font-size: clamp(24px, 4vw, 30px);
    font-weight: 700;
    color: #b11226;
    text-shadow: 0 0 20px rgba(177, 18, 38, 0.8);
}



.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* =======================
   FALLING WORDS
======================= */
.word-column {
    position: absolute;
    top: 0;
    width: 120px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    font-family: "Times New Roman", serif;
    font-weight: bold;
    pointer-events: none;
    color: rgba(177, 18, 38, 0.8); /* Bright red with glow */
    text-shadow: 0 0 10px rgba(177, 18, 38, 1),
                 0 0 20px rgba(177, 18, 38, 0.8),
                 0 0 30px rgba(177, 18, 38, 0.6);
}

.word-column.left {
    left: 0;
    transform: translateX(65px);
}

.word-column.right {
    right: 0;
    transform: translateX(-65px);
}

.word-column span {
    animation: fall linear infinite;
    margin-bottom: 20px;
    white-space: nowrap;
}

@keyframes fall {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    to {
        transform: translateY(110vh);
        opacity: 0;
    }
}

/* =======================
   CONTENT SECTIONS
======================= */
.content-section {
    padding: 5rem 2rem;
    background-color: #0b0b0d;
}

.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    text-align: center;
    margin-bottom: 3rem;
    color: #ffffff;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #b11226, transparent);
}

/* =======================
   CARDS & PANELS
======================= */
.card {
    background: #1a1313;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid #2a1a1a;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(177, 18, 38, 0.3);
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #b11226;
}

.card-content {
    color: #cccccc;
    line-height: 1.6;
}

/* =======================
   FORMS
======================= */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #e6e6e6;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: #1a1313;
    border: 1px solid #3a2a2a;
    border-radius: 6px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #b11226;
    box-shadow: 0 0 0 3px rgba(177, 18, 38, 0.2);
}

/* =======================
   TABLES
======================= */
.table-container {
    overflow-x: auto;
    background: #1a1313;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: #2e1e1e;
}

.data-table thead th {
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    color: #b11226;
    border-bottom: 2px solid #b11226;
}

.data-table tbody tr {
    background: #1a1313;
    border-bottom: 1px solid #2a1a1a;
    transition: background 0.2s ease;
}

.data-table tbody tr:hover {
    background: #2a1e1e;
}

.data-table tbody td {
    padding: 1rem;
    color: #e6e6e6;
}

/* =======================
   FOOTER
======================= */
.footer {
    background: transparent;
    color: #cccccc;
    padding: 2rem;
    margin-top: auto;
    position: relative;
    z-index: 100;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 12px;
}

.footer-section h3 {
    font-family: 'Jaro', sans-serif;
    font-size: 1.1rem;
    color: #b11226;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #999;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 5px;
}

.footer-links a i {
    width: 20px;
    color: #b11226;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo img {
    max-width: 150px;
    max-height: 65px;
    filter: drop-shadow(0 0 15px rgba(177, 18, 38, 0.5));
    opacity: 0.9;
}

.footer-bottom {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: #666;
    font-size: 0.85rem;
    margin: 0;
}

.footer-bottom a {
    color: #999;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #b11226;
}

@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-logo {
        grid-column: span 3;
        order: -1;
        margin-bottom: 1rem;
    }
}

@media (max-width: 640px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-logo {
        grid-column: span 2;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* =======================
   MOBILE RESPONSIVE
======================= */
@media (max-width: 768px) {
    /* Hide video on mobile, show background image */
    .hero-video {
        display: none;
    }
    
    .hero {
        background: url('../videos/hero-bg.jpg') center/cover no-repeat;
        background-attachment: fixed;
    }
    
    .hero-dark {
        background: rgba(0, 0, 0, 0.6);
    }
    
    /* Hide falling words on mobile */
    .word-column {
        display: none;
    }
    
    /* Mobile Navigation */
    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #1c1717;
        flex-direction: column;
        padding: 1rem;
        border-top: 2px solid #b11226;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.8);
    }
    
    .navbar-menu.active {
        display: flex;
    }
    
    .navbar-menu a::after {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .navbar-auth {
        display: none;
    }
    
    .navbar-menu.active .navbar-auth {
        display: flex;
        flex-direction: column;
        padding-top: 1rem;
        border-top: 1px solid #2a1a1a;
        margin-top: 1rem;
    }
    
    /* Hero adjustments */
    .hero-overlay {
        padding: 1rem;
    }
    
    .hero-text {
        padding: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    /* Content sections */
    .content-section {
        padding: 3rem 1rem;
    }
    
    /* Cards */
    .card {
        padding: 1.5rem;
    }
    
    /* Tables */
    .data-table {
        font-size: 0.875rem;
    }
    
    .data-table thead th,
    .data-table tbody td {
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .navbar-container {
        padding: 0.75rem 1rem;
    }
    
    .navbar-logo img {
        height: 32px;
    }
    
    .hero-text {
        padding: 1rem;
    }
    
    .player-count p:first-child {
        font-size: 28px;
    }
    
    .player-count span {
        font-size: 20px;
    }
}

/* =======================
   UTILITY CLASSES
======================= */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

/* Hide mobile auth on desktop */
@media (min-width: 769px) {
    .navbar-menu .navbar-auth {
        display: none !important;
    }
}

/* Force remove black box from hero text */
section.hero .hero-text {
    background: transparent !important;
    background-color: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Remove background from any elements inside hero-text */
.hero-text h1,
.hero-text p {
    background: transparent !important;
    background-color: transparent !important;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 1),
                 0 0 25px rgba(0, 0, 0, 0.9),
                 0 0 40px rgba(0, 0, 0, 0.8);
}

/* Force transparent navbar */
.navbar {
    background-color: transparent !important;
    backdrop-filter: blur(10px) !important;
}

/* ================================
   STORE CATEGORY PANES
================================ */

/* All panes hidden by default */
.store-pane {
    display: none;
    width: 100%;
}

/* Only the active pane is visible */
.store-pane.active {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    padding: 20px 10px;
    max-width: 1400px;
    margin: 0 auto;
    justify-items: center;
}


/* ================================
   STORE TABS
================================ */

.store-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 15px;
    justify-content: center;
}

.store-tab {
    background: #111;
    color: #ccc;
    border: 1px solid #333;
    padding: 6px 14px;
    cursor: pointer;
    font-size: 13px;
    border-radius: 3px;
    transition: all 0.15s ease;
}

.store-tab:hover {
    background: #1a1a1a;
    color: #fff;
}

/* Active tab */
.store-tab.active {
    background: #7a0000;
    border-color: #a00000;
    color: #fff;
}


/* =======================
   STORE PAGE STYLING
======================= */

/* Store Container */
.store-items {
    padding: 60px 20px;
    background: transparent;
}

/* Product Grid */
.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Product Card */
.store-item,
.bg-gray-900 {
    background: rgba(0, 0, 0, 0.50) !important; /* Changed from 0.85 to 0.50 - much lighter */
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 0 30px rgba(0,0,0,0.9), 
                inset 0 0 25px rgba(0,0,0,0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    
    /* FLEX LAYOUT FOR EQUAL HEIGHT */
    display: flex;
    flex-direction: column;
    min-height: 420px;
}

/* Hover Effect */
.store-item:hover,
.bg-gray-900:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 40px rgba(177,18,38,0.8),
                0 10px 30px rgba(0,0,0,0.9);
}

/* Product Image (old single image method - kept for compatibility) */
.store-item img:not(.item-main-image):not(.item-stats-image) {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin: 0 auto 15px;
    filter: drop-shadow(0 0 10px rgba(177,18,38,0.3));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.store-item:hover img:not(.item-main-image):not(.item-stats-image) {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px rgba(177,18,38,0.6));
}

/* =======================
   HOVER STATS PREVIEW
======================= */

/* Image Wrapper for 2-image system */
.item-image-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    flex-shrink: 0;
}

/* Main Item Image (always visible) */
.item-image-wrapper .item-main-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(177,18,38,0.3));
    transition: transform 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
}

/* Stats Image (hidden by default) */
.item-image-wrapper .item-stats-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 200px;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
    z-index: 100;
    background: rgba(0,0,0,0.95);
    padding: 15px;
    border-radius: 12px;
    border: 2px solid #b11226;
    box-shadow: 0 0 30px rgba(177,18,38,0.8),
                0 0 60px rgba(0,0,0,0.9);
}

/* Hover: Hide main image, show stats */
.store-item:hover .item-main-image {
    opacity: 0.2;
    transform: scale(0.9);
}

.store-item:hover .item-stats-image {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

/* Alternative: Side-by-side preview on larger screens */
@media (min-width: 1200px) {
    .store-item:hover .item-stats-image {
        left: 150%;
        transform: translateY(-50%) scale(1);
    }
}

/* Product Title */
.store-item h3 {
    color: #ffffff !important;
    font-size: 1.2rem !important;
    margin-bottom: 10px !important;
    text-shadow: 0 0 10px rgba(0,0,0,0.95), 
                 0 0 16px rgba(177,18,38,0.6) !important;
    font-weight: 700 !important;
    flex-shrink: 0;
}

/* Product Description */
.store-item p {
    color: #eaeaea !important;
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    opacity: 0.9 !important;
    text-shadow: 0 0 8px rgba(0,0,0,0.9) !important;
    margin-bottom: 12px !important;
    flex-shrink: 0;
}

/* Price Styling */
.store-item .mt-2,
.store-item .price {
    display: block;
    margin: 15px 0 !important;
    font-size: 1.4rem !important;
    font-weight: bold !important;
    color: #ffd700 !important;
    text-shadow: 0 0 10px rgba(0,0,0,0.9), 
                 0 0 16px rgba(255,215,0,0.6) !important;
    
    /* GROW TO PUSH BUTTON DOWN */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 15px;
}

/* Buy Button */
.store-item .buy-button {
    width: 100%;
    padding: 12px 24px !important;
    background: linear-gradient(135deg, #b11226, #e01935) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(177,18,38,0.4) !important;
    
    /* BUTTON STAYS AT BOTTOM */
    margin-top: auto;
    flex-shrink: 0;
}

.store-item .buy-button:hover {
    background: linear-gradient(135deg, #e01935, #ff2040) !important;
    box-shadow: 0 0 25px rgba(224,25,53,0.8) !important;
    transform: translateY(-2px) !important;
}

/* Discount Badge */
.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    text-shadow: none;
    box-shadow: 0 4px 15px rgba(255,215,0,0.5);
    z-index: 10;
}

/* Tabs Styling */
.nav-link {
    transition: all 0.3s ease !important;
}

.nav-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(177,18,38,0.4) !important;
}

/* Mobile Responsive for Store */
@media (max-width: 768px) {
    .store-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 20px;
    }
    
    .store-pane.active {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
    }
    
    .store-item {
        min-height: 380px;
    }
    
    .store-item h3 {
        font-size: 1rem !important;
    }
    
    .store-item .mt-2,
    .store-item .price {
        font-size: 1.2rem !important;
    }
    
    /* Stats image takes full width on mobile */
    .item-image-wrapper .item-stats-image {
        width: 180px;
        max-height: 250px;
    }
}

/* =======================
   PURCHASE MODAL
======================= */

/* Modal Overlay */
#buyModal {
    z-index: 9999;
}

/* Modal Container */
#buyModal > div {
    background: linear-gradient(180deg, #1a1313, #0d0808) !important;
    border: 2px solid #b11226;
    box-shadow: 0 0 50px rgba(177, 18, 38, 0.6),
                0 0 100px rgba(0, 0, 0, 0.9);
    max-width: 500px;
    width: 90%;
}

/* Modal Header */
#buyModal h3 {
    color: #ffd700 !important;
    font-size: 1.5rem !important;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    margin-bottom: 1rem !important;
}

/* Close Button (X) */
#closeModal {
    color: #ff4444 !important;
    font-size: 2rem !important;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

#closeModal:hover {
    color: #ff0000 !important;
    background: rgba(255, 0, 0, 0.1);
    transform: rotate(90deg);
}

/* Modal Content */
#buyModal .text-gray-300 {
    color: #e0e0e0 !important;
}

#buyModal .text-gray-300 strong {
    color: #ffffff;
    font-weight: 700;
}

/* Price Display */
#itemPrice {
    color: #ffd700 !important;
    font-size: 1.3rem;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Discount Info */
#discountInfo {
    background: rgba(177, 18, 38, 0.1);
    padding: 10px;
    border-radius: 6px;
    border-left: 3px solid #b11226;
    margin: 10px 0;
}

#originalPrice {
    color: #ff6666;
    text-decoration: line-through;
}

#discountPercentage {
    color: #4ade80;
    font-weight: bold;
}

/* Description */
#itemDescription {
    color: #cccccc !important;
    font-style: italic;
}

/* Confirm Purchase Button */
#confirmPurchase {
    background: linear-gradient(135deg, #b11226, #e01935) !important;
    border: none;
    box-shadow: 0 4px 20px rgba(177, 18, 38, 0.5);
    transition: all 0.3s ease;
    font-weight: 700 !important;
    letter-spacing: 1px;
    text-transform: uppercase;
}

#confirmPurchase:hover {
    background: linear-gradient(135deg, #e01935, #ff2040) !important;
    box-shadow: 0 0 30px rgba(224, 25, 53, 0.8);
    transform: translateY(-2px);
}

/* Login Required Message */
#buyModal .text-red-400 {
    background: rgba(239, 68, 68, 0.1);
    padding: 12px;
    border-radius: 6px;
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5 !important;
}

/* Fix store section spacing under navbar */
#store {
    padding-top: 120px !important;
}

/* Center the store title */
#store h2 {
    text-align: center;
}

/* =======================
   STORE BACKGROUND
======================= */
#store {
    min-height: 70vh;
    position: relative;
}

.store-bg {
    background-image: url('/assets/img/store-bg.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Fixed parallax effect - stays in place while content scrolls */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1; /* Behind ALL content */
}

/* Z-INDEX FIXES FOR TABS */
#store .container {
    position: relative;
    z-index: 10 !important;
}

.store-tabs {
    position: relative;
    z-index: 100 !important;
}

.store-tabs .store-tab {
    position: relative;
    z-index: 101 !important;
}

.bg-gray-700,
.bg-gray-900\/60 {
    position: relative;
    z-index: 50 !important;
}

/* =======================
   VOTE PAGE STYLES
======================= */

/* Vote Page Background */
.vote-page-background {
    position: fixed;
    inset: 0;
    z-index: -1;
}

.vote-page-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/assets/img/vote-bg.jpg') center/cover no-repeat;
    background-attachment: fixed;
}

.vote-page-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

/* Vote Cards Grid */
.vote-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

/* Vote Card Base */
.vote-card {
    background: rgba(26, 19, 19, 0.5);
    border-radius: 14px;
    padding: 1.5rem;
    border: 1px solid rgba(177, 18, 38, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
}

.vote-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #b11226, #7a0000);
}

.vote-card--ready {
    border-color: #b11226;
}

.vote-card--ready::before {
    background: linear-gradient(90deg, #22c55e, #16a34a);
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.6);
}

.vote-card--ready:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 40px rgba(177, 18, 38, 0.5),
                0 10px 30px rgba(0, 0, 0, 0.9);
    border-color: #e01935;
}

.vote-card--cooldown {
    opacity: 0.85;
}

.vote-card--cooldown:hover {
    opacity: 1;
    transform: translateY(-4px);
}

/* Vote Card Header */
.vote-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.vote-card__number {
    font-family: 'Cinzel', serif;
    font-size: 0.875rem;
    color: #999;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    border: 1px solid #333;
}

.vote-card__status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vote-card__status--ready {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.4);
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

.vote-card__status--cooldown {
    background: rgba(234, 179, 8, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(234, 179, 8, 0.4);
    text-shadow: 0 0 10px rgba(234, 179, 8, 0.5);
}

/* Vote Card Title */
.vote-card__title {
    font-family: 'Jaro', sans-serif;
    font-size: 1.25rem;
    font-weight: normal;
    color: #ffffff;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.9),
                 0 0 16px rgba(177, 18, 38, 0.4);
}

/* Vote Card Progress Bar */
.vote-card__progress-container {
    height: 8px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.vote-card__progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #eab308, #ca8a04);
    border-radius: 4px;
    transition: width 0.5s ease;
    position: relative;
    box-shadow: 0 0 10px rgba(234, 179, 8, 0.5);
}

.vote-card__progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

.vote-card__progress-bar--full {
    background: linear-gradient(90deg, #22c55e, #16a34a);
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.6);
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Vote Card Timer */
.vote-card__timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    color: #cccccc;
    margin-bottom: 1rem;
    padding: 0.625rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 6px;
    border: 1px solid #2a1a1a;
}

.vote-card__timer--ready {
    color: #4ade80;
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
}

/* Vote Card Button */
.vote-card__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    font-family: 'Jaro', sans-serif;
    font-weight: normal;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.vote-card__btn--ready {
    background: linear-gradient(135deg, #b11226, #e01935);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(177, 18, 38, 0.4);
}

.vote-card__btn--ready:hover {
    background: linear-gradient(135deg, #e01935, #ff2040);
    box-shadow: 0 0 25px rgba(224, 25, 53, 0.8);
    transform: translateY(-2px);
}

.vote-card__btn--disabled {
    background: rgba(0, 0, 0, 0.4);
    color: #666;
    border: 1px solid #333;
    cursor: not-allowed;
    pointer-events: none;
}

/* Vote Cards Responsive */
@media (max-width: 768px) {
    .vote-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }

    .vote-card {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .vote-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* =======================
   GLASS CARD UTILITY
======================= */
.glass-card {
    background: rgba(26, 19, 19, 0.5);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(177, 18, 38, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    box-shadow: 0 0 30px rgba(177, 18, 38, 0.3),
                0 8px 20px rgba(0, 0, 0, 0.5);
}

/* =======================
   STORE ITEM PRICING
======================= */
/* Original price with strikethrough when discount exists */
.original-price {
    text-decoration: line-through;
    color: #999;
    opacity: 0.7;
    font-size: 0.9rem;
    margin-right: 8px;
}

/* Discounted price - highlighted */
.discounted-price {
    color: #4ade80;
    font-weight: bold;
    font-size: 1.1rem;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.3);
}

/* Discount badge */
.discount-badge {
    background: linear-gradient(135deg, #b11226, #e01935);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: bold;
    display: inline-block;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(177, 18, 38, 0.4);
}

/* Price container for better layout */
.price-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
}