/* ===========================
   Game Top-up Center Styles
   Similar to Jubaly.com design
   =========================== */

/* Hero Section */
.topup-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3rem 0;
    color: white;
    margin-bottom: 2rem;
}

.topup-hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.topup-hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.hero-features {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-features span {
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-features i {
    font-size: 1.2rem;
}

.topup-hero-icon {
    font-size: 8rem;
    opacity: 0.3;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Section Titles */
.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title i {
    color: #667eea;
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.game-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.game-card.popular {
    border: 2px solid #fbbf24;
}

.game-image {
    position: relative;
    width: 100%;
    padding-top: 60%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

.game-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover .game-image img {
    transform: scale(1.1);
}

.popular-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
}

.game-info {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-grow: 1;
}

.game-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.game-type {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.game-rates-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.rate-badge {
    background: #f3f4f6;
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #4b5563;
}

.rate-badge.more {
    background: #667eea;
    color: white;
}

.btn-topup-now {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-topup-now:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: white;
    border: 2px solid #e5e7eb;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: #667eea;
}

/* How It Works Section */
.how-it-works {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    padding: 4rem 0;
    margin-top: 4rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.step-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: relative;
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.step-icon {
    font-size: 3rem;
    color: #667eea;
    margin: 1rem 0;
}

.step-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.step-card p {
    color: #6b7280;
    font-size: 0.95rem;
}

/* ===========================
   Game Detail Page Styles
   =========================== */

.game-detail-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3rem 0;
    color: white;
    margin-bottom: 2rem;
}

.game-detail-image {
    width: 100%;
    max-width: 250px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.game-detail-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.game-detail-type {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.game-detail-description {
    font-size: 1rem;
    opacity: 0.95;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.game-detail-badges {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.badge-item {
    background: rgba(255,255,255,0.2);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
}

/* Top-up Rates Grid */
.topup-rates-section {
    padding: 2rem 0;
}

.rates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.rate-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.rate-card:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
}

.rate-card.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.rate-card.popular {
    border-color: #fbbf24;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.popular-ribbon {
    position: absolute;
    top: 15px;
    right: -35px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    padding: 0.3rem 2.5rem;
    transform: rotate(45deg);
    font-size: 0.7rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
}

.rate-amount {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.rate-bonus {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 1rem;
}

.rate-price {
    margin-bottom: 1rem;
}

.price-label {
    font-size: 0.85rem;
    color: #6b7280;
    display: block;
    margin-bottom: 0.25rem;
}

.price-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #667eea;
}

.btn-select-rate {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.btn-select-rate:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Order Summary */
.order-summary {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 20px;
}

.summary-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.summary-item .label {
    font-weight: 600;
    color: #6b7280;
}

.summary-item .value {
    font-weight: 700;
    color: #1f2937;
}

.summary-item .value.price {
    color: #667eea;
    font-size: 1.3rem;
}

.contact-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    margin: 1.5rem 0 1rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.contact-btn.whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.contact-btn.facebook {
    background: linear-gradient(135deg, #1877F2, #0C63D4);
}

.contact-btn.phone {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.contact-btn i {
    font-size: 1.5rem;
}

.order-note {
    background: #f3f4f6;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.order-note i {
    color: #667eea;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.order-note p {
    margin: 0;
    line-height: 1.5;
}

/* Related Games Section */
.related-games-section {
    padding: 3rem 0;
    background: #f9fafb;
    margin-top: 3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .topup-hero-title {
        font-size: 1.8rem;
    }
    
    .topup-hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-features {
        gap: 1rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .game-detail-title {
        font-size: 1.8rem;
    }
    
    .rates-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .order-summary {
        position: static;
        margin-top: 2rem;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .rates-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
    }
    
    .filter-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }
}

/* Sections Spacing */
.popular-games-section,
.all-games-section {
    padding: 2rem 0;
}
