/* Homepage Specific Styles */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9), rgba(45, 45, 45, 0.9)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="%23FFD700" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    border-radius: var(--border-radius-lg);
    padding: 60px 40px;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 50px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-text h1 {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 15px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.hero-text p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.7;
}

.welcome-badge {
    display: inline-block;
    background: var(--gradient-primary);
    color: var(--background-dark);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.hero-features {
    margin: 30px 0 40px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.feature i {
    color: var(--primary-color);
    font-size: 18px;
    width: 24px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-coin,
.floating-diamond,
.floating-star {
    position: absolute;
    color: var(--primary-color);
    font-size: 24px;
    animation: float 3s ease-in-out infinite;
}

.floating-coin {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.floating-diamond {
    top: 60%;
    right: 15%;
    animation-delay: 1s;
}

.floating-star {
    bottom: 20%;
    left: 10%;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Games Section */
.games-section {
    margin-bottom: 60px;
}

.games-section h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 15px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.game-card {
    background: var(--surface-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    animation: fadeInUp 0.6s ease;
    animation-fill-mode: both;
}

.game-card:nth-child(1) { animation-delay: 0.1s; }
.game-card:nth-child(2) { animation-delay: 0.2s; }
.game-card:nth-child(3) { animation-delay: 0.3s; }
.game-card:nth-child(4) { animation-delay: 0.4s; }

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.game-card.featured {
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.game-image {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, var(--background-darker), var(--surface-color));
    overflow: hidden;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    transition: var(--transition);
}

.game-card:hover .game-overlay {
    opacity: 1;
}

.play-btn {
    background: var(--gradient-primary);
    color: var(--background-dark);
    padding: 12px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.play-btn:hover {
    transform: scale(1.05);
}

.exclusive-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gradient-secondary);
    color: white;
    padding: 6px 12px;
    border-radius: var(--border-radius);
    font-size: 12px;
    font-weight: 700;
    animation: glow 2s infinite;
}

.game-info {
    padding: 25px;
}

.game-info h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.game-info p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-size: 14px;
}

.game-stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.game-stats span {
    background: rgba(255, 215, 0, 0.1);
    color: var(--primary-color);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.rtp {
    background: rgba(16, 185, 129, 0.1) !important;
    color: var(--success-color) !important;
}

.volatility {
    background: rgba(239, 68, 68, 0.1) !important;
    color: var(--error-color) !important;
}

/* Live Casino Section */
.live-casino-section {
    margin-bottom: 60px;
}

.live-casino-section h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 15px;
}

.live-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.live-game-card {
    background: var(--surface-color);
    border-radius: var(--border-radius-lg);
    padding: 25px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease;
}

.live-game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

.live-game-card:hover::before {
    left: 100%;
}

.live-game-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.live-image {
    position: relative;
    height: 180px;
    background: linear-gradient(135deg, var(--background-darker), var(--surface-color));
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    overflow: hidden;
}

.live-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.live-indicator {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--error-color);
    color: white;
    padding: 6px 12px;
    border-radius: var(--border-radius);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: pulse 1s infinite;
}

.live-game-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.live-game-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* Tournament Section */
.tournament-section {
    margin-bottom: 60px;
}

.tournament-section h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 15px;
}

.tournament-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.tournament-card {
    background: var(--surface-color);
    border: 2px solid var(--warning-color);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease;
}

.tournament-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, rgba(245, 158, 11, 0.1), transparent 30%);
    animation: rotate 4s linear infinite;
}

.tournament-card > * {
    position: relative;
    z-index: 2;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.tournament-header {
    margin-bottom: 15px;
}

.tournament-header h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.tournament-header img {
    width: 100%;
    height: 150px;
		border-radius: 10px;
    object-fit: cover;
}

.prize {
    background: var(--gradient-primary);
    color: var(--background-dark);
    padding: 8px 16px;
    border-radius: var(--border-radius);
    font-weight: 700;
    font-size: 14px;
    display: inline-block;
}

.tournament-time {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 20px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.tournament-time i {
    color: var(--warning-color);
}

/* Promotions Section */
.promotions-section {
    margin-bottom: 60px;
}

.promotions-section h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 15px;
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.promo-card {
    background: var(--surface-color);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    text-align: center;
    position: relative;
    transition: var(--transition);
    animation: fadeInUp 0.6s ease;
}

.promo-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.featured-promo {
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.2);
}

.promo-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-secondary);
    color: white;
    padding: 6px 16px;
    border-radius: var(--border-radius);
    font-size: 12px;
    font-weight: 700;
}

.promo-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 20px 0 10px;
    color: var(--text-primary);
}

.promo-card p {
    color: var(--text-secondary);
    margin-bottom: 25px;
}

/* Testimonials Section */
.testimonials-section {
    margin-bottom: 60px;
}

.testimonials-section h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--surface-color);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    position: relative;
    animation: fadeInUp 0.6s ease;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 60px;
    color: var(--primary-color);
    font-family: serif;
}

.testimonial-content p {
    font-size: 16px;
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.testimonial-author strong {
    color: var(--text-primary);
    font-weight: 700;
}

.testimonial-author span {
    color: var(--text-muted);
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 32px;
    }
    
    .hero-text h2 {
        font-size: 20px;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .games-grid,
    .live-games-grid,
    .tournament-grid,
    .promo-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .games-section h2,
    .live-casino-section h2,
    .tournament-section h2,
    .promotions-section h2,
    .testimonials-section h2 {
        font-size: 28px;
    }
    
    .hero-section {
        padding: 40px 20px;
    }
    
    .floating-elements {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 26px;
    }
    
    .hero-text h2 {
        font-size: 18px;
    }
    
    .hero-section {
        padding: 30px 15px;
    }
    
    .game-info,
    .live-game-card,
    .tournament-card,
    .promo-card,
    .testimonial-card {
        padding: 20px;
    }
    
    .games-section h2,
    .live-casino-section h2,
    .tournament-section h2,
    .promotions-section h2,
    .testimonials-section h2 {
        font-size: 24px;
    }
}