/* ============================================
   MBTI Career Test - Global Styles
   Dark Mode First (#0f0f23) + Navy Theme (#2c3e50)
   2026 UI/UX Trends: Glassmorphism, Microinteractions
   ============================================ */

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent, #2c3e50);
    color: #fff;
    padding: 8px 16px;
    z-index: 10000;
    transition: top 0.2s;
    font-size: 14px;
    border-radius: 0 0 4px 0;
}
.skip-link:focus {
    top: 0;
}

:root {
    --bg-primary: #0f0f23;
    --bg-secondary: #1a1a3e;
    --bg-tertiary: #252547;
    --theme-primary: #2c3e50;
    --theme-accent: #3498db;
    --text-primary: #ffffff;
    --text-secondary: #b0b8c1;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Mode */
[data-theme="light"] {
    --bg-primary: #f5f5fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f0f0f5;
    --theme-primary: #2c3e50;
    --theme-accent: #3498db;
    --text-primary: #1a1a2e;
    --text-secondary: #5a5a70;
    --border-color: rgba(0, 0, 0, 0.1);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* App Loader */
.app-loader {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg-primary, #0f0f23);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s;
}
.app-loader.hidden {
    opacity: 0;
    pointer-events: none;
}
.loader-spinner {
    width: 40px; height: 40px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: var(--theme-accent, #3498db);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

[data-theme="light"] body {
    background-color: var(--bg-primary);
}

[data-theme="light"] .header {
    background: rgba(255, 255, 255, 0.9);
    border-bottom-color: var(--border-color);
}

[data-theme="light"] .hero-badge {
    background: rgba(52, 152, 219, 0.1);
    border-color: rgba(52, 152, 219, 0.2);
}

[data-theme="light"] .home-divider {
    color: var(--text-secondary);
}

[data-theme="light"] .btn-secondary {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="light"] .btn-secondary:hover {
    background: rgba(52, 152, 219, 0.1);
    border-color: var(--theme-accent);
}

[data-theme="light"] .answer-btn {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="light"] .answer-btn:hover {
    background: rgba(52, 152, 219, 0.1);
    border-color: var(--theme-accent);
}

[data-theme="light"] .mbti-option {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="light"] .mbti-option:hover {
    background: rgba(52, 152, 219, 0.1);
    border-color: var(--theme-accent);
}

[data-theme="light"] .career-card,
[data-theme="light"] .team-card,
[data-theme="light"] .related-card {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="light"] .career-card:hover,
[data-theme="light"] .team-card:hover,
[data-theme="light"] .related-card:hover {
    background: rgba(52, 152, 219, 0.1);
    border-color: var(--theme-accent);
}

[data-theme="light"] .chart-container,
[data-theme="light"] .career-section,
[data-theme="light"] .team-section,
[data-theme="light"] .related-section {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="light"] .modal-content {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="light"] .footer {
    background: var(--bg-secondary);
    border-top-color: var(--border-color);
}

[data-theme="light"] .lang-toggle {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="light"] .lang-toggle:hover {
    background: rgba(52, 152, 219, 0.1);
}

[data-theme="light"] .lang-menu {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="light"] .lang-option:hover {
    background: rgba(52, 152, 219, 0.1);
}

.theme-toggle {
    position: fixed;
    top: 12px;
    right: 56px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

[data-theme="light"] .theme-toggle {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

[data-theme="light"] .theme-toggle:hover {
    background: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    letter-spacing: 0.3px;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.header {
    background: rgba(15, 15, 35, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #3498db, #2c3e50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-right {
    position: relative;
}

.lang-toggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-toggle:hover {
    background: var(--theme-primary);
    transform: scale(1.05);
}

.lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-top: 0.5rem;
    min-width: 200px;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding: 0.5rem;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.lang-menu.hidden {
    display: none;
}

.lang-option {
    padding: 0.75rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.875rem;
    text-align: left;
    transition: var(--transition);
}

.lang-option:hover {
    background: var(--bg-tertiary);
    border-color: var(--theme-accent);
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1rem;
}

.main-content {
    padding: 2rem 1rem;
    min-height: calc(100vh - 250px);
}

/* ============================================
   SCREENS
   ============================================ */

.screen {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.screen.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   HOME SCREEN
   ============================================ */

.hero {
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeIn 0.5s ease-in-out;
}

.hero-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1;
    animation: bounceIn 0.6s ease-out;
}

@keyframes bounceIn {
    0% { transform: scale(0.5); opacity: 0; }
    60% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.hero h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(52, 152, 219, 0.15);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 20px;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    color: var(--theme-accent);
    font-weight: 500;
}

.badge-icon {
    font-size: 0.9rem;
}

.home-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.home-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.home-divider::before,
.home-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

/* Info strip: compact horizontal feature list */
.info-strip {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1.5rem 0 1rem;
    flex-wrap: wrap;
}

.info-strip-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.info-strip-icon {
    font-size: 1rem;
}

/* Social proof */
.social-proof {
    text-align: center;
    padding: 0.75rem;
    margin-top: 0.5rem;
}

.social-proof p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

.btn {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    touch-action: manipulation;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

/* CTA pulse animation */
.btn-cta-pulse {
    animation: ctaPulse 2s ease-in-out infinite;
    font-size: 1.1rem;
    padding: 1.1rem 1.5rem;
}

@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3); }
    50% { box-shadow: 0 4px 25px rgba(52, 152, 219, 0.5); }
}

@media (prefers-reduced-motion: reduce) {
    .btn-cta-pulse {
        animation: none !important;
    }
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--theme-accent);
}

.btn-premium {
    background: linear-gradient(135deg, #f39c12, #e74c3c);
    color: white;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
}

.btn-close {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    transition: var(--transition);
}

.btn-close:hover {
    background: var(--bg-tertiary);
}

/* ============================================
   TEST SCREEN
   ============================================ */

.test-header {
    margin-bottom: 2rem;
}

.test-header h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.progress-bar {
    height: 4px;
    background: var(--bg-secondary);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2c3e50);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: right;
}

.test-content {
    margin: 2rem 0;
    min-height: 300px;
}

.question {
    margin-bottom: 2rem;
}

.question-text {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.answer-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.answer-btn {
    padding: 1rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    cursor: pointer;
    text-align: left;
    font-size: 1rem;
    transition: var(--transition);
    min-height: 44px;
    position: relative;
}

.answer-btn:hover {
    border-color: var(--theme-accent);
    background: var(--bg-tertiary);
    transform: translateX(4px);
}

.answer-btn.selected {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.2), rgba(44, 62, 80, 0.2));
    border-color: var(--theme-accent);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.test-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.test-buttons .btn {
    flex: 1;
}

/* ============================================
   MBTI SELECTION SCREEN
   ============================================ */

.select-header {
    text-align: center;
    margin-bottom: 2rem;
}

.select-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.select-header p {
    color: var(--text-secondary);
}

.mbti-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.mbti-option {
    aspect-ratio: 1;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.5rem;
    transition: var(--transition);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.mbti-option:hover {
    border-color: var(--theme-accent);
    background: var(--bg-tertiary);
    transform: scale(1.05);
}

.mbti-option.selected {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.3), rgba(44, 62, 80, 0.3));
    border-color: var(--theme-accent);
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
}

.mbti-icon-small {
    font-size: 2rem;
}

.select-buttons {
    display: flex;
    gap: 1rem;
}

/* ============================================
   RESULTS SCREEN
   ============================================ */

.results-header {
    position: relative;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.results-header h2 {
    flex: 1;
    font-size: 1.5rem;
    text-align: center;
}

.results-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* MBTI Summary */
.mbti-summary {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(44, 62, 80, 0.1));
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
}

.mbti-type {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.mbti-icon {
    font-size: 4rem;
    line-height: 1;
}

#mbti-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--theme-accent);
}

.mbti-description {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 400px;
}

/* Chart */
.chart-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
}

.chart-container h3 {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.radar-chart {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
}

/* Career Section */
.career-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
}

.career-section h3 {
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.careers-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.career-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    transition: var(--transition);
}

.career-card:hover {
    border-color: var(--theme-accent);
    background: var(--bg-tertiary);
    transform: translateX(4px);
}

.career-rank {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.career-name {
    font-size: 1rem;
    font-weight: 600;
    margin: 0.5rem 0;
    color: var(--text-primary);
}

.career-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.career-rating {
    display: flex;
    gap: 0.25rem;
}

.star {
    color: #f39c12;
    font-size: 0.875rem;
}

/* Team Section */
.team-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
}

.team-section h3 {
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.team-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.team-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    transition: var(--transition);
}

.team-card:hover {
    border-color: var(--theme-accent);
    background: var(--bg-tertiary);
}

.team-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.team-type {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.team-reason {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Premium Section */
.premium-section {
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.1), rgba(231, 76, 60, 0.1));
    border: 1px solid rgba(243, 156, 18, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
}

.premium-section .btn {
    width: 100%;
    margin-bottom: 1rem;
}

#premium-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Share Section */
.share-section {
    display: flex;
    gap: 1rem;
}

.share-section .btn {
    flex: 1;
}

/* Related Apps Section */
.related-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
}

.related-section h3 {
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.related-apps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.related-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-height: 120px;
    justify-content: center;
}

.related-card:hover {
    border-color: var(--theme-accent);
    background: var(--bg-tertiary);
    transform: translateY(-4px);
}

.related-icon {
    font-size: 2rem;
    line-height: 1;
}

.related-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.related-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

@media (max-width: 480px) {
    .related-apps {
        grid-template-columns: 1fr;
    }
}

/* Retry Section */
.retry-section {
    text-align: center;
}

.retry-section .btn {
    width: 100%;
}

/* ============================================
   MODAL
   ============================================ */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: flex-end;
    z-index: 2000;
    animation: slideUp 0.3s ease-out;
}

.modal.hidden {
    display: none;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.modal-content {
    background: var(--bg-secondary);
    border-radius: 20px 20px 0 0;
    padding: 1.5rem;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    position: relative;
}

.modal-content h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-right: 2rem;
}

.modal-content > .btn-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.modal-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.ad-container {
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: 12px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-container ins {
    display: block;
}

#watch-ad-btn {
    width: 100%;
    margin: 1.5rem 0;
}

.premium-analysis {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.premium-analysis.hidden {
    display: none;
}

.premium-analysis h4 {
    font-size: 1rem;
    margin-top: 1rem;
    margin-bottom: 0.75rem;
    color: var(--theme-accent);
}

.premium-analysis p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================
   AD SECTIONS
   ============================================ */

.ad-top,
.ad-bottom {
    padding: 1rem;
    display: flex;
    justify-content: center;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin: 1rem 0;
}

.ad-top ins,
.ad-bottom ins {
    display: block;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.8;
}

.footer p {
    margin: 0.5rem 0;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.25rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .info-strip {
        gap: 1rem;
    }

    .info-strip-item {
        font-size: 0.8rem;
    }

    .mbti-grid {
        grid-template-columns: 1fr 1fr;
    }

    .team-list {
        grid-template-columns: 1fr;
    }

    .test-buttons {
        flex-direction: column;
    }

    .select-buttons {
        flex-direction: column;
    }

    .share-section {
        flex-direction: column;
    }

    .lang-menu {
        grid-template-columns: 1fr;
        min-width: 150px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 700px;
    }

    .team-list {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .modal {
        align-items: center;
    }

    .modal-content {
        border-radius: 20px;
        max-height: 90vh;
        width: auto;
        min-width: 500px;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus States */
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--theme-accent);
    outline-offset: 2px;
}

/* High Contrast */
@media (prefers-contrast: more) {
    :root {
        --border-color: rgba(255, 255, 255, 0.3);
    }
}
