/**
 * Language-specific Responsive Styles
 * Handles different text lengths across languages
 */

/* Hero Section Language Adjustments */
.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
}

/* English specific adjustments */
html[lang="en-US"] .hero-title {
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
}

html[lang="en-US"] .hero-title .highlight {
    font-size: 1.1em; /* Slightly larger for emphasis */
}

html[lang="en-US"] .hero-desc {
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    max-width: 700px;
    margin: 0 auto;
}

/* Japanese specific adjustments */
html[lang="ja-JP"] .hero-title {
    font-size: clamp(2.3rem, 4.8vw, 3.9rem);
    font-weight: 600;
}

html[lang="ja-JP"] .hero-desc {
    font-size: clamp(0.95rem, 1.6vw, 1.15rem);
    line-height: 1.7;
}

/* Feature cards language adjustments */
.feature-title {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    margin-bottom: 0.75rem;
}

html[lang="en-US"] .feature-title,
html[lang="ja-JP"] .feature-title {
    min-height: 2.5em; /* Ensure consistent height */
}

.feature-desc {
    font-size: clamp(0.9rem, 1.4vw, 1rem);
    line-height: 1.6;
}

html[lang="en-US"] .feature-desc {
    min-height: 3em;
}

html[lang="ja-JP"] .feature-desc {
    min-height: 3em;
    line-height: 1.65;
}

/* Navigation adjustments */
.nav-auth .btn {
    white-space: nowrap;
    padding: 0.625rem 1.25rem;
}

html[lang="ja-JP"] .nav-auth .btn {
    font-size: 0.9rem;
}

/* Mobile responsive for all languages */
@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(2rem, 6vw, 2.8rem);
    }
    
    html[lang="en-US"] .hero-title,
    html[lang="ja-JP"] .hero-title {
        font-size: clamp(1.8rem, 5.5vw, 2.5rem);
    }
    
    .hero-desc {
        font-size: clamp(0.9rem, 2.5vw, 1.1rem);
        padding: 0 1rem;
    }
    
    .hero-desc br {
        display: none; /* Remove line breaks on mobile */
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-title {
        font-size: 1.25rem;
        min-height: auto;
    }
    
    .feature-desc {
        font-size: 0.95rem;
        min-height: auto;
    }
}

/* Tablet responsive */
@media (min-width: 769px) and (max-width: 1024px) {
    html[lang="en-US"] .hero-title,
    html[lang="ja-JP"] .hero-title {
        font-size: 3rem;
    }
    
    .hero-desc {
        max-width: 600px;
    }
}

/* Large screens */
@media (min-width: 1440px) {
    .hero-desc {
        max-width: 800px;
    }
    
    html[lang="en-US"] .hero-desc,
    html[lang="ja-JP"] .hero-desc {
        max-width: 750px;
    }
}

/* Ensure buttons don't break on smaller screens */
.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
    }
}

/* Stats section responsive */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    min-width: 100px;
}

@media (max-width: 640px) {
    .hero-stats {
        gap: 2rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
}