:root {
    /* Light Mode (Default) */
    --bg-primary: #ffffff;
    --bg-secondary: #fafafa;
    --bg-card: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --accent-primary: #8B4513;
    --accent-secondary: #A0522D;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.dark-mode {
    /* Dark Mode Overrides */
    --bg-primary: #121212;
    --bg-secondary: #1e1e1e;
    --bg-card: #242424;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --accent-primary: #cd853f;
    /* Lighter brown for dark mode */
    --accent-secondary: #deb887;
    --border-color: #333333;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    padding: 0;
    background: var(--bg-primary);
    margin: 0 auto;
    overflow-x: hidden;
    color: var(--text-primary);
}

/* Hero Section - Minimalist Landing */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(139, 69, 19, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* AI Badge */
.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(139, 69, 19, 0.2);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.ai-badge svg {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Version Badge */
.version-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.1) 0%, rgba(255, 107, 0, 0.1) 100%);
    color: var(--text-secondary);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    margin-top: 3rem;
    border: 1px solid rgba(255, 152, 0, 0.2);
    box-shadow: 0 2px 10px rgba(255, 152, 0, 0.1);
    animation: fadeInUp 0.8s ease-out 0.4s both;
    transition: all 0.3s ease;
}

.version-badge:hover {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.15) 0%, rgba(255, 107, 0, 0.15) 100%);
    border-color: rgba(255, 152, 0, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.15);
}

/* Hero Title */
.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    line-height: 1.1;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

/* Hero Subtitle */
.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Hero Auth Button */
.hero-auth {
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.hero-auth-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--accent-primary);
    border: 2px solid #e0e0e0;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-auth-button:hover {
    border-color: #8B4513;
    background: #8B4513;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.2);
}

/* Hero Actions */
.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.25);
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(139, 69, 19, 0.35);
}

.cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: transparent;
    color: var(--accent-primary);
    border: 2px solid #8B4513;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cta-secondary:hover {
    background: #8B4513;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.25);
}

/* Hero Features */
.hero-features {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 2rem;
    animation: fadeInUp 0.8s ease-out 0.7s both;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.feature-item svg {
    color: var(--accent-primary);
    margin-bottom: 0.25rem;
}

/* About Section */
.about-section {
    padding: 5rem 2rem;
    background: var(--bg-secondary);
    text-align: center;
}

.about-content {
    max-width: 700px;
    margin: 0 auto;
}

.about-content h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 300;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.about-content p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.8;
    color: var(--text-secondary);
}

/* Responsive Hero */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 4rem 1.5rem;
    }

    .hero-title {
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        margin-bottom: 1.5rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .cta-primary,
    .cta-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .hero-features {
        gap: 1.5rem;
    }

    .feature-item {
        font-size: 0.85rem;
    }

    .about-section {
        padding: 3rem 1.5rem;
    }
}

header {
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8B4513, #A0522D, #D2691E, #CD853F);
}

/* Header Top Row - Title and Auth */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 2rem;
}

.header-title-section {
    flex: 1;
    text-align: left;
}

.auth-container {
    flex-shrink: 0;
}

header h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    margin: 0;
    color: var(--text-primary);
}

header .subtitle {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: var(--accent-primary);
    font-style: italic;
    margin: 0.25rem 0 0 0;
    letter-spacing: 0.02em;
    font-weight: 300;
}

.header-description {
    font-size: 1rem;
    color: var(--text-secondary);
    font-style: italic;
    margin: 0 0 1.5rem 0;
    letter-spacing: 0.01em;
    text-align: center;
}

/* Header Actions - Navigation Buttons */
.header-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Primary Button - Solid Brown */
.primary-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.01em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.25);
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.35);
    background: linear-gradient(135deg, #A0522D 0%, #8B4513 100%);
}

.primary-button svg {
    width: 20px;
    height: 20px;
}

/* Secondary Button - Outlined Brown */
.secondary-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--accent-primary);
    border: 2px solid #8B4513;
    padding: 10px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.01em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.secondary-button:hover {
    transform: translateY(-2px);
    background: #8B4513;
    color: white;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.25);
}

.secondary-button svg {
    width: 20px;
    height: 20px;
}

/* Responsive Header */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .header-title-section {
        text-align: center;
        width: 100%;
    }

    .auth-container {
        align-self: center;
    }

    .header-actions {
        flex-direction: column;
        width: 100%;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
        justify-content: center;
    }
}

h1 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 2.5rem;
    font-weight: 600;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 180px);
    gap: 1.5rem;
    margin: 1rem 0;
    padding: clamp(0.5rem, 2vw, 1rem);
    justify-content: center;
}

.color-card-container {
    width: 180px;
    height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.color-box {
    width: 100%;
    height: 120px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 0.5rem;
    position: relative;
    overflow: hidden;
}

.color-box:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.color-info {
    background: var(--bg-card);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.hidden {
    display: none;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    width: 95%;
    max-width: 1000px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal:not(.hidden) .modal-content {
    transform: scale(1);
}

.modal.hidden .modal-content {
    transform: scale(0.9);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0.5rem;
    line-height: 1;
    transition: color 0.2s ease;
}

.close-modal:hover {
    color: var(--text-primary);
}

.color-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    justify-content: center;
}

.color-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    max-height: 2.4em;
    margin-bottom: 0.25rem;
}

.color-values {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    flex: 1;
    justify-content: center;
}

.color-values span {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.hex {
    font-family: monospace;
}

.rgb {
    font-family: monospace;
    font-size: 0.75rem;
}

.selected-color {
    grid-column: 1 / -1;
    max-width: 300px;
    margin: 0 auto 2rem auto;
    position: relative;
}

.selected-color .color-box {
    border: 3px solid var(--text-primary);
}

.selected-color::after {
    content: 'Selected Color';
    position: absolute;
    top: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-primary);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.no-combinations {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-style: italic;
    background: var(--bg-secondary);
    border-radius: 8px;
    margin: 1rem 0;
}

.combinations-container {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem 1rem;
}

.selected-color-info {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2.5rem;
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.selected-color-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 8px;
    height: 100%;
    background-color: var(--color);
}

.color-preview {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease;
}

.color-preview:hover {
    transform: scale(1.05);
}

.color-details {
    flex: 1;
}

.color-details h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.color-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.color-value {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.value-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.value-content {
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: 0.9rem;
    color: var(--text-primary);
    background: var(--bg-secondary);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
}

.combinations-header {
    text-align: left;
    padding: 2rem 0;
    margin-bottom: 2rem;
    position: relative;
}

.combinations-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, var(--border-color) 0%, var(--bg-secondary) 100%);
}

.combinations-header h2 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.combinations-count {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.combination-pair {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.combination-pair:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.combination-preview {
    width: 100%;
}

.color-strip {
    height: 160px;
    width: 100%;
    position: relative;
    transition: all 0.3s ease;
}

.color-strip::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.05));
}

.combo-details {
    padding: 1.5rem;
    background: var(--bg-card);
    position: relative;
}

.combination-number {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.combo-colors {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.combo-color {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-primary);
    background: var(--bg-card);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.combo-color:hover {
    background: var(--bg-secondary);
    transform: translateY(-1px);
}

.color-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.combo-divider {
    color: var(--text-primary);
    margin: 0 0.25rem;
    display: flex;
    align-items: center;
    opacity: 0.5;
}

.color-strip {
    height: 180px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2rem;
    height: 2rem;
    border: none;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
}

.modal-content {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    width: 95%;
    max-width: 1000px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    margin: 2rem;
    opacity: 1 !important;
}

.combinations-container {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.combination-preview {
    margin-bottom: 2rem;
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

#combinations-grid {
    position: relative;
    padding-top: 1rem;
}

.combo-values {
    display: flex;
    gap: 1rem;
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Adjust the color grid for combinations */
.modal-content .color-grid {
    display: block;
    max-width: 800px;
    margin: 0 auto;
}

.selected-color-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.selected-color-header h2 {
    color: var(--text-primary);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.selected-color-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {

    /* Tablet landscape */
    .color-grid {
        grid-template-columns: repeat(auto-fill, 200px);
        gap: 1.2rem;
    }

    .color-card-container {
        width: 200px;
        height: 240px;
    }

    .popular-colors-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .popular-combinations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {

    /* Tablet portrait and small tablets */
    body {
        padding: 1rem;
    }

    header {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    h1 {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .color-grid {
        grid-template-columns: repeat(auto-fill, 180px);
        gap: 1rem;
    }

    .color-card-container {
        width: 180px;
        height: 220px;
    }

    .color-box {
        height: 120px;
    }

    .color-info {
        height: 80px;
        padding: 0.8rem;
    }

    .modal-content {
        padding: clamp(1rem, 4vw, 2rem);
        margin: 1rem;
        max-width: 95vw;
    }

    .selected-color-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5rem;
        gap: 1rem;
    }

    .color-preview {
        width: 100px;
        height: 100px;
    }

    .color-details h3 {
        font-size: 1.5rem;
    }

    .combination-pair {
        margin-bottom: 1rem;
    }

    .color-strip {
        height: 120px;
    }

    .combo-details {
        padding: 1rem;
    }

    .combo-colors {
        gap: 0.5rem;
    }

    .combo-color {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }

    .color-dot {
        width: 12px;
        height: 12px;
    }

    /* Popular sections responsive */
    .popular-colors-section,
    .popular-combinations-section {
        margin-bottom: 3rem;
    }

    .popular-colors-container,
    .popular-combinations-container {
        padding: 2rem;
    }

    .popular-colors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .popular-combinations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    /* Footer responsive */
    footer {
        padding: 3rem 1.5rem;
        margin-top: 4rem;
    }

    .inspiration-section h2 {
        font-size: 1.8rem;
    }

    .inspiration-section p {
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {

    /* Mobile phones */
    body {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    header {
        padding: 1rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }

    h1 {
        font-size: clamp(1.5rem, 6vw, 2rem);
        line-height: 1.2;
    }

    .subtitle {
        font-size: 0.9rem;
        margin-top: 0.5rem;
    }

    .color-grid {
        grid-template-columns: repeat(auto-fill, 150px);
        gap: 0.8rem;
        padding: 0.5rem;
    }

    .color-card-container {
        width: 150px;
        height: 190px;
    }

    .color-box {
        height: 100px;
    }

    .color-info {
        height: 70px;
        padding: 0.6rem;
        font-size: 0.8rem;
    }

    .color-name {
        font-size: 0.8rem;
        line-height: 1.2;
    }

    .color-values {
        font-size: 0.7rem;
    }

    .combination-number {
        font-size: 0.9rem;
    }

    .color-values {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 1rem;
        margin: 0.5rem;
        border-radius: 12px;
        max-width: 98vw;
    }

    .close-modal {
        font-size: 1.5rem;
        top: 0.5rem;
        right: 0.5rem;
    }

    /* Popular sections mobile */
    .popular-colors-section,
    .popular-combinations-section {
        margin-bottom: 2rem;
    }

    .popular-colors-container,
    .popular-combinations-container {
        padding: 1.5rem;
    }

    .popular-colors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .popular-combinations-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .popular-color-item {
        padding: 1rem;
    }

    .popular-combination-item {
        padding: 1rem;
    }

    .popular-combination-color {
        width: 30px;
        height: 30px;
    }

    .popular-combination-colors {
        gap: 0.1rem;
    }

    /* Footer mobile */
    footer {
        padding: 2rem 1rem;
        margin-top: 3rem;
    }

    .inspiration-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .inspiration-section p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    /* Button responsive */
    .view-all-combinations {
        padding: 12px 24px;
        font-size: 1rem;
    }

    .analyze-button {
        padding: 12px 24px;
        font-size: 1rem;
    }

    /* Additional mobile optimizations */
    .color-grid-container,
    .combinations-preview {
        padding: 1.5rem;
    }

    .empty-state h3 {
        font-size: 1.3rem;
    }

    .empty-state p {
        font-size: 0.9rem;
    }

    .empty-state-icon {
        font-size: 3rem;
    }
}

/* Extra small devices (320px and below) */
@media screen and (max-width: 320px) {
    body {
        padding: 0.25rem;
        font-size: 0.8rem;
    }

    .color-grid {
        grid-template-columns: repeat(auto-fill, 140px);
        gap: 0.6rem;
    }

    .color-card-container {
        width: 140px;
        height: 180px;
    }

    .color-box {
        height: 90px;
    }

    .color-info {
        height: 60px;
        padding: 0.5rem;
        font-size: 0.7rem;
    }

    .color-name {
        font-size: 0.7rem;
    }

    .color-values {
        font-size: 0.6rem;
    }

    .popular-colors-grid,
    .popular-combinations-grid {
        grid-template-columns: 1fr;
    }

    .popular-color-item,
    .popular-combination-item {
        padding: 0.8rem;
    }

    .popular-combination-color {
        width: 25px;
        height: 25px;
    }

    .view-all-combinations,
    .analyze-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Popular Colors Section */
.popular-colors-section {
    margin-bottom: 4rem;
}

.popular-colors-container {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.popular-colors-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8B4513, #D2691E, #CD853F, #DEB887);
}

.popular-colors-container h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 300;
    letter-spacing: 0.05em;
    text-align: center;
}

.popular-colors-container p {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.popular-colors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.popular-color-item {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.popular-color-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.popular-color-swatch {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    margin: 0 auto 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid white;
}

.popular-color-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.popular-color-count {
    font-size: 0.8rem;
    color: var(--accent-primary);
    font-weight: 500;
}

/* Fire emoji removed */

.loading-popular {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    color: var(--text-secondary);
}

.spinner-small {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #8B4513;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

body.dark-mode .spinner-small {
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top: 2px solid #8B4513;
}

.no-popular-colors {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-style: italic;
    grid-column: 1 / -1;
}

/* Popular Combinations Section */
.popular-combinations-section {
    margin-bottom: 4rem;
}

.popular-combinations-container {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.popular-combinations-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8B4513, #D2691E, #CD853F, #DEB887);
}

.popular-combinations-container h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 300;
    letter-spacing: 0.05em;
    text-align: center;
}

.popular-combinations-container p {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.popular-combinations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.popular-combination-item {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.popular-combination-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-color: #8B4513;
}

.popular-combination-header {
    display: none;
    /* Hide the header since we'll show number under colors */
}

.combination-number {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-top: 0.8rem;
    text-align: center;
}

.popular-combination-colors {
    display: flex;
    gap: 0.3rem;
    margin-bottom: 0.5rem;
    flex-wrap: nowrap;
    justify-content: center;
}

.popular-combination-color {
    width: 35px;
    height: 35px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid white;
    position: relative;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

/* Dynamic sizing is handled by JavaScript */

.popular-combination-color:hover {
    transform: scale(1.1);
}

.popular-combination-color::after {
    content: attr(title);
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 10;
}

.popular-combination-color:hover::after {
    opacity: 1;
}

.popular-combination-info {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.popular-combination-count {
    font-weight: 600;
    color: var(--accent-primary);
}

/* Star emoji removed */

/* Responsive design for popular combinations */
@media screen and (max-width: 768px) {
    .popular-combinations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .popular-combination-color {
        width: 35px;
        height: 35px;
    }

    .popular-combination-colors {
        gap: 0.2rem;
    }
}

@media screen and (max-width: 480px) {
    .popular-combinations-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .popular-combination-color {
        width: 30px;
        height: 30px;
    }

    .popular-combination-colors {
        gap: 0.1rem;
    }
}

/* New styles for improved layout */
.main-color-section {
    margin-bottom: 3rem;
}

.color-grid-container {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    margin-bottom: 3rem;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.color-grid-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #8B4513, #D2691E, #CD853F, #DEB887);
}

.combinations-preview {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.combinations-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #8B4513, #D2691E, #CD853F, #DEB887);
}

.empty-state {
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.8;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.empty-state h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 300;
    letter-spacing: 0.02em;
}

.empty-state p {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 500px;
    font-style: italic;
    letter-spacing: 0.01em;
    margin: 0 auto;
    text-align: center;
}

/* Footer styles */
footer {
    margin-top: 3rem;
    margin-bottom: 0;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8B4513, #D2691E, #CD853F, #DEB887);
}

.inspiration-section {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.inspiration-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    font-weight: 300;
    letter-spacing: 0.05em;
    position: relative;
}

.inspiration-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #8B4513, #D2691E);
}

.inspiration-content {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.1rem;
}

.inspiration-content p {
    margin-bottom: 1.5rem;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Enhanced color box styling */
.color-box {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.color-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.color-box:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.color-box:hover::before {
    opacity: 1;
}

.color-box.selected {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 0 0 3px #8B4513, 0 12px 35px rgba(139, 69, 19, 0.3);
}

.color-box.selected::before {
    opacity: 1;
}

/* Combination preview styles */
.combination-preview {
    transition: all 0.3s ease;
    cursor: pointer;
}

.combination-preview:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Combinations preview styles */
.combinations-preview-content {
    text-align: center;
}

.combinations-preview-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.combinations-preview-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.preview-combinations {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.preview-combination {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 140px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.preview-combination::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #8B4513, #D2691E, #CD853F);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.preview-combination:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.preview-combination:hover::before {
    opacity: 1;
}

.preview-color-strip {
    display: flex;
    height: 40px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.preview-combination-info {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.view-all-combinations {
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 400;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

.view-all-combinations::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.view-all-combinations:hover {
    background: linear-gradient(135deg, #A0522D 0%, #8B4513 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.4);
}

.view-all-combinations:hover::before {
    left: 100%;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    body {
        padding: clamp(10px, 2vw, 20px);
        font-size: 14px;
    }

    header {
        padding: 2rem 1rem;
        margin-bottom: 2rem;
    }

    header h1 {
        font-size: clamp(2rem, 8vw, 3rem);
        line-height: 1.2;
    }

    header .subtitle {
        font-size: 1.1rem;
    }

    header p:not(.subtitle) {
        font-size: 1rem;
    }

    .analyze-button {
        padding: 12px 24px;
        font-size: 1rem;
        width: 100%;
        max-width: 300px;
    }

    /* Color grid mobile */
    .color-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
        margin: 1rem 0;
    }

    .color-item {
        padding: 15px 10px;
        border-radius: 12px;
    }

    .color-item h4 {
        font-size: 0.8rem;
        margin-bottom: 5px;
    }

    .color-item p {
        font-size: 0.7rem;
    }

    /* Combinations mobile */
    .combinations-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }

    .combination-card {
        padding: 15px;
    }

    .combination-card h3 {
        font-size: 1rem;
    }

    .combination-card p {
        font-size: 0.8rem;
    }

    /* Popular colors mobile */
    .popular-colors-container,
    .popular-combinations-container,
    .color-grid-container {
        padding: 2rem 1rem;
        margin: 1rem 0;
    }

    .popular-colors-container h2,
    .popular-combinations-container h2,
    .color-grid-container h2 {
        font-size: 1.5rem;
    }

    .popular-colors-container p,
    .popular-combinations-container p,
    .color-grid-container p {
        font-size: 0.9rem;
    }

    /* Buttons mobile */
    .view-all-combinations {
        padding: 12px 24px;
        font-size: 1rem;
        width: 100%;
        max-width: 300px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    header {
        padding: 1.5rem 0.5rem;
    }

    header h1 {
        font-size: 1.8rem;
    }

    .color-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 8px;
    }

    .color-item {
        padding: 12px 8px;
    }

    .combinations-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
    }

    .combination-card {
        padding: 12px;
    }

    .popular-colors-container,
    .popular-combinations-container,
    .color-grid-container {
        padding: 1.5rem 0.5rem;
    }
}

/* Landscape mobile */
@media (max-width: 768px) and (orientation: landscape) {
    header {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    header h1 {
        font-size: 2rem;
    }

    .color-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }

    .combinations-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

/* Dark Mode Toggle */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.theme-toggle:hover {
    background-color: var(--bg-secondary);
}

.theme-toggle svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
}

.dark-mode .theme-toggle .sun-icon {
    display: block;
}

.dark-mode .theme-toggle .moon-icon {
    display: none;
}

.theme-toggle .sun-icon {
    display: none;
}

.theme-toggle .moon-icon {
    display: block;
}

/* Profile Modal Styles */
.profile-modal-content {
    max-width: 400px;
    text-align: center;
    padding: 2.5rem;
}

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

.profile-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 600;
    margin: 0 auto 1rem auto;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.2);
}

.profile-header h2 {
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.profile-header p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.profile-badges {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.badge {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

.profile-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-primary);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.full-width {
    width: 100%;
    justify-content: center;
}

/* Recent Generations Styles */
.recent-generations-section {
    padding: 2rem 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.recent-generations-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.section-header h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 0;
}

.view-all-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.view-all-link:hover {
    text-decoration: underline;
}

.recent-generations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.history-item {
    background: var(--bg-primary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease;
}

.history-item:hover {
    transform: translateY(-4px);
}

.history-image-container {
    position: relative;
    padding-top: 100%;
    /* 1:1 Aspect Ratio */
    background: #f0f0f0;
}

.history-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.history-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.history-item:hover .history-overlay {
    opacity: 1;
}

.history-info {
    padding: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.history-style {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--bg-secondary);
    padding: 2px 8px;
    border-radius: 4px;
}

.loading-recent {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    color: var(--text-secondary);
}