/* Responsive Design */

/* Large Desktop */
@media (max-width: 1400px) {
    .container {
        max-width: 1200px;
    }
}

/* Desktop */
@media (max-width: 1200px) {
    .container {
        max-width: 1000px;
        padding: 0 1.5rem;
    }
    
    .hero-title {
        font-size: 3.75rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .play-grid {
        grid-template-columns: 280px 1fr 280px;
        gap: 1.5rem;
    }
}

/* Tablet Landscape */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .hero-visual {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .chess-board-preview {
        max-width: 100%;
        padding: 1rem;
    }
    
    .play-grid {
        grid-template-columns: 1fr;
    }
    
    .play-grid aside:last-child {
        display: none;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .models-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 75px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg-secondary);
        padding: 1.5rem 0;
        border-bottom: 1px solid var(--border);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        width: 100%;
        padding: 1rem 2rem;
        border-radius: 0;
    }
    
    .hero {
        min-height: auto;
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .stat-value {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .play-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .play-header h1 {
        font-size: 1.875rem;
    }
    
    .models-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .docs-content {
        padding: 2rem 1.5rem;
    }
    
    .docs-content h1 {
        font-size: 2.25rem;
    }
    
    .docs-content h2 {
        font-size: 1.875rem;
    }
    
    .color-modal-content {
        margin: 1rem;
        padding: 2rem;
    }
    
    .thinking-indicator {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        padding: 1rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .navbar .container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9375rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .feature-card h3 {
        font-size: 1.375rem;
    }
    
    .play-header {
        padding: 1.5rem;
    }
    
    .play-header h1 {
        font-size: 1.5rem;
    }
    
    .sidebar-card {
        margin-bottom: 1.25rem;
    }
    
    .model-option {
        padding: 1rem;
        margin: 0.75rem;
    }
    
    .model-card {
        padding: 2rem;
    }
    
    .model-card h2 {
        font-size: 1.625rem;
    }
    
    .color-modal-content {
        padding: 1.5rem;
    }
    
    .color-modal-content h2 {
        font-size: 1.625rem;
    }
    
    .color-options {
        flex-direction: column;
    }
    
    .color-option i {
        font-size: 3rem;
    }
    
    .docs-content {
        padding: 1.5rem 1rem;
    }
    
    .docs-content h1 {
        font-size: 1.875rem;
    }
    
    .docs-content h2 {
        font-size: 1.5rem;
    }
    
    .docs-content h3 {
        font-size: 1.25rem;
    }
    
    .docs-content pre {
        padding: 1rem;
        font-size: 0.8125rem;
    }
    
    .status-card {
        padding: 1.5rem;
    }
    
    .status-info {
        grid-template-columns: 1fr;
    }
    
    #chessboard {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .board-wrapper {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .chess-board-preview {
        max-width: 100%;
        padding: 0.75rem;
    }
    
    .pgn-table th,
    .pgn-table td {
        padding: 0.625rem;
        font-size: 0.8125rem;
    }
}

/* Very Small Mobile */
@media (max-width: 360px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .nav-brand {
        font-size: 1.375rem;
    }
    
    .logo {
        width: 40px;
        height: 40px;
    }
}
