/* Master Chess - Main Stylesheet */

/* Global Styles */
:root {
    --primary-blue: #1a237e;
    --secondary-blue: #3949ab;
    --light-blue: #e8eaf6;
    --white: #ffffff;
    --black: #000000;
    --gray: #757575;
    --accent-color: #ffd700;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--white);
}

/* Header Styles */
.header {
    background-color: var(--primary-blue);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.logo:hover::after {
    transform: scaleX(1);
}

/* Game Container */
.game-container {
    margin-top: 80px;
    width: 100%;
    height: calc(100vh - 80px);
    position: relative;
    background: var(--light-blue);
}

.game-frame {
    width: 100%;
    height: 100%;
    border: none;
}

/* Language Selector */
.language-selector {
    display: flex;
    gap: 0.5rem;
}

.language-btn {
    background: var(--white);
    border: 1px solid var(--primary-blue);
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.language-btn:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
}

/* Content Sections */
.section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    color: var(--primary-blue);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--accent-color);
}

/* Strategy Section */
.strategy-section {
    background: var(--light-blue);
}

.strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.strategy-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.strategy-card:hover {
    transform: translateY(-5px);
}

.strategy-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Team Section */
.team-section {
    background: var(--white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-card {
    background: var(--light-blue);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.team-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* History Section */
.history-section {
    background: var(--light-blue);
}

.history-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.history-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--primary-blue);
}

.timeline-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    position: relative;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
}

.timeline-item h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Reviews Section */
.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.review-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
}

.review-card cite {
    display: block;
    margin-top: 1rem;
    color: var(--gray);
    font-style: italic;
}

/* Footer */
.footer {
    background: var(--primary-blue);
    color: var(--white);
    padding: 2rem;
    text-align: center;
}

.footer a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--accent-color);
}

/* Fullscreen Button */
.fullscreen-btn {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
}

.fullscreen-btn:hover {
    background: var(--secondary-blue);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 1rem;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .section {
        padding: 2rem 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .strategy-grid,
    .team-grid,
    .reviews-container {
        grid-template-columns: 1fr;
    }
    
    .history-timeline::before {
        left: 0;
    }
    
    .timeline-item {
        margin-left: 2rem;
    }
    
    .timeline-item::before {
        left: -2rem;
    }
} 