/* 
===============================
   RESPONSIVE STYLESHEET - HairTypeAI
===============================
*/

/* 
===============================
   Media Queries
===============================
   - Large devices (desktops, less than 1200px)
   - Medium devices (tablets, less than 992px)
   - Small devices (landscape phones, less than 768px)
   - Extra small devices (portrait phones, less than 576px)
===============================
*/

/* Large devices (desktops, less than 1200px) */
@media (max-width: 1199.98px) {
    :root {
        --container-padding: 1.25rem;
    }
    
    h1 {
        font-size: 2.75rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    section {
        padding: var(--spacing-lg) 0;
    }
    
    /* Hero section adjustments */
    .hero-section {
        min-height: 85vh;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    /* Hairstyle Studio adjustments */
    .studio-container {
        gap: var(--spacing-md);
    }
    
    .comparison-slider {
        height: 350px;
    }
    
    /* How It Works adjustments */
    .step-connector {
        flex: 0 0 3%;
    }
    
    /* 调整Gallery网格在大屏设备上的布局 */
    .hairstyle-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 25px;
    }
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
    :root {
        --container-padding: 1rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    /* Header and Navigation */
    .main-nav {
        display: none;
    }
    
    .auth-buttons {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Hero section adjustments */
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text {
        flex: 0 0 100%;
        max-width: 100%;
        padding-right: 0;
        margin-bottom: var(--spacing-lg);
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-image {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    /* Hairstyle Studio adjustments */
    .studio-container {
        flex-direction: column;
    }
    
    .studio-photo-column,
    .studio-options-column {
        width: 100%;
    }
    
    .comparison-slider {
        height: 300px;
    }
    
    /* How It Works adjustments */
    .process-steps-horizontal {
        flex-direction: column;
        gap: var(--spacing-lg);
    }
    
    .step-item {
        width: 100%;
        max-width: 100%;
    }
    
    .step-connector {
        display: none;
    }
    
    /* Columns adjustment */
    .col-md-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .col-md-4 {
        flex: 0 0 33.33%;
        max-width: 33.33%;
    }
    
    .col-md-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
    
    /* Footer adjustments */
    .footer-links {
        gap: var(--spacing-md);
    }
    
    /* 调整Gallery网格在中等设备上的布局 */
    .hairstyle-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }
    
    .hairstyle-name {
        font-size: 1.1rem;
        padding: 12px;
    }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
    html {
        font-size: 15px;
    }
    
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.65rem;
    }
    
    section {
        padding: var(--spacing-md) 0;
    }
    
    .section-title {
        margin-bottom: var(--spacing-md);
    }
    
    /* Hero section adjustments */
    .hero-section {
        margin-top: 60px;
        min-height: auto;
        padding: var(--spacing-lg) 0;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .stat-item {
        margin-right: var(--spacing-md);
    }
    
    .stat-item:not(:last-child)::after {
        right: -15px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    /* Hairstyle Studio adjustments */
    .studio-photo-column,
    .studio-options-column {
        padding: var(--spacing-md);
    }
    
    .upload-area {
        min-height: 200px;
    }
    
    .custom-select select {
        padding: 12px 35px 12px 40px;
    }
    
    .comparison-slider {
        height: 250px;
    }
    
    .results-actions {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .results-actions .btn {
        width: 100%;
    }
    
    /* How It Works adjustments */
    .step-title {
        font-size: 1.2rem;
    }
    
    /* Layout adjustments */
    .col-sm-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    /* Footer adjustments */
    .footer-content {
        flex-direction: column;
    }
    
    .footer-links {
        width: 100%;
        justify-content: space-between;
        margin-bottom: var(--spacing-md);
    }
    
    .footer-nav, .footer-legal, .footer-contact {
        flex: 0 0 48%;
        margin-bottom: var(--spacing-md);
    }
    
    .footer-social {
        align-items: flex-start;
    }
    
    /* 历史记录展示区域调整 */
    .history-results-container {
        width: 95%;
        padding: var(--spacing-md);
    }
    
    .clear-history-btn {
        padding: 0.3rem 0.7rem !important;
        font-size: 0.8rem !important;
    }
    
    .history-result-item {
        flex: 0 0 calc(50% - var(--spacing-md));
        max-width: calc(50% - var(--spacing-md));
    }
    
    /* 调整Gallery网格在小屏设备上的布局 */
    .hairstyle-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
        margin-top: 30px;
    }
    
    .hairstyle-showcase-section {
        padding: 60px 0;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    html {
        font-size: 14px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
    }
    
    /* Hero section adjustments */
    .hero-stats {
        flex-wrap: wrap;
        justify-content: space-around;
    }
    
    .stat-item {
        margin: 0 0 var(--spacing-xs) 0;
        flex: 0 0 30%;
    }
    
    .stat-item:not(:last-child)::after {
        display: none;
    }
    
    /* Hairstyle Studio adjustments */
    .studio-photo-column,
    .studio-options-column {
        padding: var(--spacing-sm);
    }
    
    .upload-area {
        min-height: 180px;
        padding: var(--spacing-sm);
    }
    
    .upload-content i {
        font-size: 2rem;
    }
    
    .upload-requirements ul {
        padding-left: 15px;
    }
    
    .custom-select select {
        padding: 10px 30px 10px 35px;
        font-size: 0.9rem;
    }
    
    .select-icon {
        left: 10px;
        font-size: 1rem;
    }
    
    .select-arrow {
        right: 10px;
    }
    
    .create-btn {
        padding: 12px;
    }
    
    .comparison-slider {
        height: 200px;
    }
    
    .handle-circle {
        width: 30px;
        height: 30px;
    }
    
    /* How It Works adjustments */
    .step-item {
        padding: var(--spacing-sm);
    }
    
    .step-icon {
        font-size: 2rem;
        margin: var(--spacing-sm) 0;
    }
    
    .step-title {
        font-size: 1.1rem;
    }
    
    /* Layout adjustments */
    .col-xs-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    /* Footer adjustments */
    .footer-links {
        flex-direction: column;
    }
    
    .footer-nav, .footer-legal, .footer-contact {
        flex: 0 0 100%;
    }
    
    /* 历史记录展示区域调整 */
    .history-results-container {
        width: 100%;
    }
    
    .history-result-item {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: var(--spacing-sm);
    }
    
    /* 调整Gallery网格在超小屏设备上的布局 */
    .hairstyle-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-top: 20px;
    }
    
    .hairstyle-name {
        font-size: 1rem;
        padding: 10px;
    }
    
    .hairstyle-item:hover {
        transform: translateY(-5px);
    }
}

/* Specific adjustments for very small devices */
@media (max-width: 375px) {
    .logo img {
        max-height: 30px;
    }
    
    .custom-select select {
        font-size: 0.85rem;
    }
} 