/* ============================================
   101 Game - Custom Styles
   ============================================ */

/* Variables */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --accent-gold: #ffd700;
    --accent-green: #6bcf7f;
    --accent-red: #ff6b6b;
    --accent-yellow: #ffd93d;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --border-radius: 12px;
    --border-radius-lg: 16px;
}

/* Typography */
body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    padding-top: 76px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

/* Navigation */
.navbar {
    background: var(--primary-gradient) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand img {
    height: 40px;
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-gold) !important;
}

/* Hero Section */
.hero-section {
    background: var(--primary-gradient);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/images/hero.webp') center/cover no-repeat;
    opacity: 0.1;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-section .lead {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* Buttons */
.btn-primary {
    background: var(--primary-gradient);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-download {
    background: var(--accent-gold);
    color: var(--text-dark);
    font-weight: 700;
    padding: 15px 40px;
    font-size: 1.1rem;
}

.btn-download:hover {
    background: #ffed4e;
    color: var(--text-dark);
}

/* Cards */
.card {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

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

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

/* Feature Section */
.feature-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-gradient);
    margin: 1rem auto;
    border-radius: 2px;
}

/* Stats Section */
.stats-section {
    background: var(--primary-gradient);
    color: white;
    padding: 60px 0;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    font-family: 'Chakra Petch', sans-serif;
    color: var(--accent-gold);
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    margin-top: 10px;
    opacity: 0.9;
}

/* Game Types */
.game-type-card {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    position: relative;
    height: 300px;
    background: var(--bg-light);
}

.game-type-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-type-card:hover img {
    transform: scale(1.1);
}

.game-type-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 20px;
}

/* Strategy Section */
.strategy-list {
    list-style: none;
    padding: 0;
}

.strategy-list li {
    padding: 15px;
    margin-bottom: 10px;
    background: white;
    border-left: 4px solid var(--accent-gold);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.strategy-list li::before {
    content: '✓';
    color: var(--accent-green);
    font-weight: bold;
    margin-right: 10px;
}

/* Rules Accordion */
.accordion-button {
    background: var(--bg-light);
    font-weight: 600;
}

.accordion-button:not(.collapsed) {
    background: var(--primary-gradient);
    color: white;
}

/* App Info Table */
.app-info-table {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.app-info-table th {
    background: var(--primary-gradient);
    color: white;
    font-weight: 600;
}

/* Footer */
.footer {
    background: #1a1a1a !important;
    margin-top: 80px;
}

.footer a {
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--accent-gold) !important;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-gold);
    color: var(--text-dark) !important;
}

/* Fixed Download Button (Mobile) */
.fixed-download-btn {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.2rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .card {
        margin-bottom: 20px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 767.98px) {
    body {
        padding-top: 56px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .feature-section {
        padding: 50px 0;
    }
    
    .stats-section {
        padding: 40px 0;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .game-type-card {
        height: 250px;
        margin-bottom: 20px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Lazy Loading */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Utility Classes */
.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient {
    background: var(--primary-gradient);
}

.shadow-custom {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
