/**
 * Body Age Estimator - Responsive Design
 * Mobile-first approach with smooth transitions
 */

/* ===== TABLET (768px and below) ===== */
@media (max-width: 768px) {
    :root {
        --font-size-4xl: 2rem;
        --font-size-3xl: 1.5rem;
        --font-size-2xl: 1.25rem;
        --font-size-5xl: 2.5rem;
        --spacing-3xl: 2.5rem;
    }
    
    /* Navigation */
    .nav-container {
        padding: 0 var(--spacing-md);
    }
    
    .nav-links {
        gap: var(--spacing-md);
    }
    
    .nav-link {
        font-size: var(--font-size-xs);
        padding: var(--spacing-xs) var(--spacing-sm);
    }
    
    .container {
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .main-header {
        margin-bottom: var(--spacing-2xl);
    }
    
    .intro-content {
        padding: var(--spacing-2xl) var(--spacing-lg);
    }
    
    .question-container {
        padding: var(--spacing-xl) var(--spacing-lg);
    }
    
    .result-card {
        padding: var(--spacing-2xl) var(--spacing-lg);
    }
    
    .result-actions {
        flex-direction: column;
    }
    
    .action-button {
        width: 100%;
        justify-content: center;
    }
    
    .toast-container {
        left: var(--spacing-md);
        right: var(--spacing-md);
    }
    
    .toast {
        min-width: auto;
        width: 100%;
    }
}

/* ===== MOBILE (480px and below) ===== */
@media (max-width: 480px) {
    /* Navigation */
    .nav-links {
        gap: var(--spacing-xs);
    }
    
    .nav-link {
        font-size: 10px;
        padding: var(--spacing-xs);
    }
    
    .nav-logo {
        font-size: var(--font-size-base);
    }
    :root {
        --font-size-4xl: 1.75rem;
        --font-size-3xl: 1.375rem;
        --font-size-2xl: 1.125rem;
        --font-size-xl: 1.125rem;
        --font-size-5xl: 2rem;
        --spacing-2xl: 1.5rem;
    }
    
    .cta-button {
        padding: var(--spacing-md) var(--spacing-xl);
        width: 100%;
    }
    
    .answer-options {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 1fr);
    }
    
    .answer-button {
        padding: var(--spacing-md) var(--spacing-lg);
        min-height: 60px;
        text-align: left;
        justify-content: flex-start;
    }
    
    /* Result Card Mobile */
    .result-card {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        padding: var(--spacing-xl);
    }
    
    .result-visual {
        order: 2;
        flex-direction: row;
        justify-content: space-around;
    }
    
    .result-details {
        order: 1;
    }
    
    .result-icon-container {
        width: 80px;
        height: 80px;
    }
    
    .result-icon svg {
        width: 32px;
        height: 32px;
    }
    
    .result-stats {
        flex-direction: row;
        gap: var(--spacing-md);
    }
    
    .stat-item {
        flex: 1;
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-xs);
    }
    
    .question-text {
        font-size: var(--font-size-xl);
    }
    
    .age-number {
        font-size: var(--font-size-4xl);
    }
}

/* ===== LARGE SCREENS (1200px and above) ===== */
@media (min-width: 1200px) {
    .container {
        max-width: 900px;
    }
    
    .intro-content {
        padding: var(--spacing-3xl);
    }
    
    .question-container {
        padding: var(--spacing-3xl);
    }
    
    .result-card {
        padding: var(--spacing-3xl);
    }
}

/* ===== LANDSCAPE MOBILE ===== */
@media (max-height: 600px) and (orientation: landscape) {
    .main-header {
        margin-bottom: var(--spacing-xl);
    }
    
    .intro-content,
    .question-container,
    .result-card {
        padding: var(--spacing-lg);
    }
}
