/* =============================================================================
   Game Server Hosting Pages - Revelation Hosting
   Styles for game catalog and individual game detail pages
   ============================================================================= */

/* -----------------------------------------------------------------------------
   CSS Custom Properties (Themeable per-game)
   ----------------------------------------------------------------------------- */
:root {
    --game-accent: #007bff;
    --game-accent-dark: #0056b3;
    --game-hero-overlay: rgba(0,0,0,0.7);
}

/* Minecraft Theme */
.theme-minecraft {
    --game-accent: #5D8731;
    --game-accent-dark: #4A6B26;
}

/* ArmA Theme */
.theme-arma {
    --game-accent: #4A5D23;
    --game-accent-dark: #2D3A1E;
}

/* Rust Theme */
.theme-rust {
    --game-accent: #CE422B;
    --game-accent-dark: #9E3220;
}

/* Valheim Theme */
.theme-valheim {
    --game-accent: #5B3E31;
    --game-accent-dark: #3D2921;
}

/* Palworld Theme */
.theme-palworld {
    --game-accent: #FF6B9D;
    --game-accent-dark: #E84B7D;
}

/* -----------------------------------------------------------------------------
   Game Card Components
   ----------------------------------------------------------------------------- */
.game-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
    text-decoration: none !important;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.game-card .game-image {
    position: relative;
    overflow: hidden;
}

.game-card .game-image img {
    transition: transform 0.3s ease;
    width: 100%;
    height: auto;
}

.game-card:hover .game-image img {
    transform: scale(1.05);
}

.game-card .price-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.85);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 3px;
    font-weight: bold;
    font-size: 0.9rem;
}

.game-card .premium-ribbon {
    position: absolute;
    top: 10px;
    left: -35px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #333;
    font-size: 0.65rem;
    font-weight: bold;
    padding: 0.25rem 2rem;
    transform: rotate(-45deg);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.game-card .free-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-weight: bold;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.game-card .partner-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #6f42c1 0%, #8b5cf6 100%);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-weight: bold;
    font-size: 0.7rem;
    text-transform: uppercase;
}

/* -----------------------------------------------------------------------------
   Pricing Cards
   ----------------------------------------------------------------------------- */
.pricing-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.pricing-card.popular {
    border: 2px solid var(--game-accent);
}

.pricing-card .popular-ribbon {
    position: absolute;
    top: 15px;
    right: -25px;
    background: var(--game-accent);
    color: white;
    font-size: 0.65rem;
    font-weight: bold;
    padding: 0.25rem 2rem;
    transform: rotate(45deg);
    text-transform: uppercase;
}

.pricing-card .price-display {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--game-accent);
}

.pricing-card .price-period {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Billing toggle */
.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.billing-toggle .btn-billing {
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    transition: background 0.2s, color 0.2s;
}

.billing-toggle .btn-billing.active {
    background: var(--game-accent);
    color: white;
}

/* -----------------------------------------------------------------------------
   Promotional Banners
   ----------------------------------------------------------------------------- */
.promo-banner {
    position: relative;
    padding: 1rem 0;
    overflow: hidden;
}

.promo-banner.banner-urgent {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.promo-banner.banner-seasonal {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
}

.promo-banner.banner-partner {
    background: linear-gradient(135deg, #6f42c1 0%, #5a32a3 100%);
}

.promo-banner.banner-launch {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.promo-banner .countdown {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.promo-banner .countdown-item {
    text-align: center;
}

.promo-banner .countdown-value {
    font-size: 1.5rem;
    font-weight: bold;
    background: rgba(255,255,255,0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 5px;
    min-width: 50px;
    display: inline-block;
}

.promo-banner .countdown-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    opacity: 0.9;
}

/* -----------------------------------------------------------------------------
   Feature Cards
   ----------------------------------------------------------------------------- */
.feature-card {
    padding: 1.5rem;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.feature-card .feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(var(--game-accent-rgb, 0,123,255), 0.1);
    margin-bottom: 1rem;
}

.feature-card .feature-icon .icon {
    color: var(--game-accent);
}

/* -----------------------------------------------------------------------------
   Region Cards
   ----------------------------------------------------------------------------- */
.region-card {
    padding: 1.25rem;
    text-align: center;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: white;
}

.region-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.region-card .region-flag {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.region-card .region-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.region-card .region-location {
    font-size: 0.85rem;
    color: #6c757d;
}

/* -----------------------------------------------------------------------------
   FAQ Accordion
   ----------------------------------------------------------------------------- */
.faq-accordion .card {
    border: none;
    margin-bottom: 0.5rem;
    border-radius: 8px !important;
    overflow: hidden;
}

.faq-accordion .card-header {
    background: white;
    border: none;
    padding: 0;
}

.faq-accordion .card-header button {
    width: 100%;
    text-align: left;
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-accordion .card-header button:hover {
    text-decoration: none;
}

.faq-accordion .card-header button::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--game-accent);
    transition: transform 0.2s;
}

.faq-accordion .card-header button[aria-expanded="true"]::after {
    content: '−';
}

.faq-accordion .card-body {
    padding: 0 1.25rem 1rem;
    color: #666;
}

/* -----------------------------------------------------------------------------
   Related Games Section
   ----------------------------------------------------------------------------- */
.related-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.related-game-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.related-game-card:hover {
    text-decoration: none;
    color: inherit;
}

.related-game-card img {
    width: 100%;
    border-radius: 8px;
    transition: transform 0.2s;
}

.related-game-card:hover img {
    transform: scale(1.03);
}

/* -----------------------------------------------------------------------------
   Hero Pricing Card
   ----------------------------------------------------------------------------- */
.hero-pricing-card {
    background: white;
    border-radius: 0;
    overflow: hidden;
}

.hero-pricing-card .card-header {
    padding: 1rem;
    text-align: center;
    font-weight: 600;
}

.hero-pricing-card .price-hero {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
}

/* -----------------------------------------------------------------------------
   Category Pills / Filters
   ----------------------------------------------------------------------------- */
.category-pill {
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: background 0.2s ease, color 0.2s ease;
    margin: 0.25rem;
}

.category-pill:hover,
.category-pill.active {
    background: var(--game-accent, var(--primary));
    color: white !important;
}

/* -----------------------------------------------------------------------------
   Search Box
   ----------------------------------------------------------------------------- */
.game-search-box {
    max-width: 400px;
    margin: 0 auto;
}

.game-search-box .form-control {
    border-radius: 25px 0 0 25px;
    border-right: none;
    padding-left: 1.25rem;
}

.game-search-box .input-group-text {
    border-radius: 0 25px 25px 0;
    background: var(--game-accent, var(--primary));
    border-color: var(--game-accent, var(--primary));
    color: white;
}

/* -----------------------------------------------------------------------------
   Edition/Version Cards (e.g., Minecraft Java/Bedrock)
   ----------------------------------------------------------------------------- */
.edition-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    border: 2px solid transparent;
}

.edition-card:hover {
    transform: translateY(-5px);
    border-color: var(--game-accent);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

/* -----------------------------------------------------------------------------
   Server Type Cards
   ----------------------------------------------------------------------------- */
.server-type-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 2px solid transparent;
}

.server-type-card:hover {
    transform: translateY(-5px);
    border-color: var(--game-accent);
}

/* -----------------------------------------------------------------------------
   Modpack Grid
   ----------------------------------------------------------------------------- */
.modpack-grid .modpack-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1rem;
    text-align: center;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.modpack-grid .modpack-item:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* -----------------------------------------------------------------------------
   CTA Section
   ----------------------------------------------------------------------------- */
.cta-section {
    background: linear-gradient(135deg, var(--game-accent) 0%, var(--game-accent-dark) 100%);
}

/* -----------------------------------------------------------------------------
   Spec Items (Military-style stats)
   ----------------------------------------------------------------------------- */
.spec-item {
    background: rgba(255,255,255,0.05);
    border-left: 3px solid var(--game-accent);
    padding: 1rem;
    margin-bottom: 0.5rem;
}

.spec-item .feature-stat {
    font-size: 2rem;
    font-weight: bold;
    color: var(--game-accent);
}

/* -----------------------------------------------------------------------------
   Responsive Adjustments
   ----------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .pricing-card .price-display {
        font-size: 2rem;
    }
    
    .hero-pricing-card .price-hero {
        font-size: 2.5rem;
    }
    
    .promo-banner .countdown {
        gap: 0.5rem;
    }
    
    .promo-banner .countdown-value {
        font-size: 1.1rem;
        padding: 0.2rem 0.5rem;
        min-width: 40px;
    }
    
    .game-card .premium-ribbon {
        font-size: 0.55rem;
        left: -40px;
    }
}

/* -----------------------------------------------------------------------------
   Animation Keyframes
   ----------------------------------------------------------------------------- */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease-out;
}
