/* 
   Living Room Ideas — Creative Sharing Platform
   Content-First Design, Pinterest-Like Experience
*/

/* Design System - Color Variables */
:root {
    /* Primary Blue Palette - Modern & Professional */
    --primary-blue: #2563EB;        /* Main brand blue */
    --primary-blue-light: #3B82F6;  /* Light variant */
    --primary-blue-dark: #1D4ED8;   /* Dark variant */
    --primary-blue-subtle: #DBEAFE; /* Very light background */
    
    /* Secondary Blue Palette - Accent & Highlights */
    --accent-blue: #0EA5E9;         /* Sky blue for accents */
    --accent-blue-light: #38BDF8;   /* Light sky blue */
    --accent-blue-dark: #0284C7;    /* Dark sky blue */
    
    /* Neutral Colors */
    --text-primary: #1F2937;        /* Dark gray for text */
    --text-secondary: #6B7280;      /* Medium gray for secondary text */
    --text-muted: #9CA3AF;          /* Light gray for muted text */
    --border-light: #E5E7EB;        /* Light border */
    --surface-white: #FFFFFF;       /* Pure white */
    --surface-gray: #F9FAFB;        /* Light gray background */
    
    /* Interactive States */
    --hover-overlay: rgba(37, 99, 235, 0.08);
    --focus-ring: rgba(37, 99, 235, 0.2);
    --shadow-blue: rgba(37, 99, 235, 0.15);
}

/* CSS Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.5;
    color: #111;
    background: #fff;
    overflow-x: hidden;
}

/* Loading State */
.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-grid {
    display: flex;
    align-items: center;
    gap: 20px;
}

.loading-text {
    font-size: 14px;
    font-weight: 500;
    color: #666;
    letter-spacing: 0.5px;
}

/* Main Layout */
.app-container {
    min-height: 100vh;
}

/* Simplified Header for Content Platform */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid #e1e1e1;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    border-bottom-color: #d1d1d1;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: #111;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-center {
    flex: 1;
    max-width: 500px;
    margin: 0 40px;
}

.search-bar {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    height: 40px;
    padding: 0 50px 0 16px;
    border: 2px solid #e1e1e1;
    border-radius: 20px;
    background: #f8f8f8;
    font-size: 15px;
    color: #111;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--primary-blue);
    background: var(--surface-white);
    box-shadow: 0 0 0 3px var(--focus-ring), 0 4px 20px rgba(0, 0, 0, 0.1);
}

.search-input::placeholder {
    color: #999;
}

.search-icon {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-icon:hover {
    background: #f0f0f0;
}

.search-icon::before {
    content: '';
    width: 14px;
    height: 14px;
    border: 2px solid #666;
    border-radius: 50%;
    position: relative;
}

.search-icon::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 2px;
    background: #666;
    transform: rotate(45deg);
    top: 22px;
    left: 21px;
}

.search-input:focus + .search-icon::before {
    border-color: var(--primary-blue);
}

.search-input:focus + .search-icon::after {
    background: var(--primary-blue);
}

.nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Hide mobile search button on desktop */
.mobile-search-btn {
    display: none;
}

/* Inspire Me Button - Enhanced Design with Animations */
.inspire-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid var(--border-light);
    border-radius: 14px;
    background: linear-gradient(135deg, var(--surface-white) 0%, #f8fafc 100%);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    animation: inspireMeGlow 4s ease-in-out infinite;
}

/* Inspire Me Button Glow Animation */
@keyframes inspireMeGlow {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 0 0 0 rgba(37, 99, 235, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 4px 16px rgba(37, 99, 235, 0.2), 0 0 0 3px rgba(37, 99, 235, 0.1);
        transform: scale(1.015);
    }
}

.inspire-btn:hover {
    border-color: var(--primary-blue);
    background: linear-gradient(135deg, var(--primary-blue-subtle) 0%, #e0f2fe 100%);
    color: var(--primary-blue);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.2);
    transform: translateY(-1px);
}

.inspire-btn:active {
    transform: scale(0.98);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.inspire-icon {
    font-size: 16px;
    transition: transform 0.2s ease;
    animation: inspireIconSparkle 3.5s ease-in-out infinite;
}

.inspire-btn:hover .inspire-icon {
    transform: scale(1.1);
    animation-play-state: paused;
}

/* Inspire Icon Sparkle Animation */
@keyframes inspireIconSparkle {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    25% {
        transform: scale(1.1) rotate(5deg);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.05) rotate(-3deg);
        opacity: 1;
    }
    75% {
        transform: scale(1.15) rotate(8deg);
        opacity: 0.9;
    }
}

/* Mobile-optimized animations */
@keyframes inspireMeGlowMobile {
    0%, 100% {
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04), 0 0 0 0 rgba(37, 99, 235, 0.2);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 3px 12px rgba(37, 99, 235, 0.15), 0 0 0 2px rgba(37, 99, 235, 0.08);
        transform: scale(1.01);
    }
}

@keyframes inspireMeGlowMinimal {
    0%, 100% {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 3px 8px rgba(37, 99, 235, 0.1);
        transform: scale(1.005);
    }
}

@keyframes inspireIconSparkleMobile {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1.05) rotate(3deg);
        opacity: 0.9;
    }
}

@keyframes inspireIconSparkleMinimal {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.02);
        opacity: 0.95;
    }
}

.inspire-text {
    white-space: nowrap;
    font-weight: 600;
}



/* Content Header */
.content-header {
    padding: 84px 24px 20px;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.page-title {
    font-size: 32px;
    font-weight: 800;
    color: #111;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.page-subtitle {
    font-size: 16px;
    color: #666;
    max-width: 600px;
    margin: 0 auto 24px;
}

.stats-bar {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 24px;
    padding: 20px 0;
}

.stat-item {
    text-align: center;
    padding: 16px 24px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 122, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 80px;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue));
    border-radius: 16px 16px 0 0;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px var(--shadow-blue);
    border-color: var(--focus-ring);
}

.stat-number {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-blue);
    display: block;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 24px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 20px;
    border: 1px solid #e1e1e1;
    background: #fff;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.tab-btn:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    box-shadow: 0 2px 8px var(--shadow-blue);
    transform: translateY(-0.5px);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    border-color: var(--primary-blue);
    color: var(--surface-white);
    box-shadow: 0 4px 12px var(--shadow-blue), 0 0 0 2px var(--focus-ring);
    transform: translateY(-1px);
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.tab-btn.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}



/* Search Page */
.search-page-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.search-page {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 1200px;
    min-height: 80vh;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    margin-top: 40px;
}

.search-page-header {
    padding: 24px;
    border-bottom: 1px solid #e1e1e1;
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fafafa;
    border-radius: 12px 12px 0 0;
}

.search-close-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    color: #666;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.search-close-btn:hover {
    background: #e0e0e0;
    color: #111;
}

.search-page-form {
    flex: 1;
    display: flex;
    gap: 12px;
}

.search-page-input {
    flex: 1;
    height: 48px;
    padding: 0 16px;
    border: 2px solid #e1e1e1;
    border-radius: 24px;
    background: #fff;
    font-size: 16px;
    color: #111;
    outline: none;
    transition: all 0.3s ease;
}

.search-page-input:focus {
    border-color: #007AFF;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.search-submit-btn {
    padding: 0 24px;
    height: 48px;
    border: none;
    border-radius: 24px;
    background: #007AFF;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-submit-btn:hover {
    background: #0056CC;
    transform: translateY(-1px);
}

.search-page-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.search-results-header {
    margin-bottom: 24px;
}

.search-results-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #111;
    margin-bottom: 4px;
}

.search-results-header p {
    color: #666;
    font-size: 14px;
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.search-placeholder,
.no-search-results {
    text-align: center;
    padding: 60px 20px;
}

.search-placeholder-icon,
.no-results-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.search-placeholder h3,
.no-search-results h3 {
    font-size: 20px;
    font-weight: 600;
    color: #111;
    margin-bottom: 8px;
}

.search-placeholder p,
.no-search-results p {
    color: #666;
    font-size: 16px;
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

/* Section Titles */
.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #111;
    margin: 0 0 32px 0;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #007AFF, #5856D6);
    margin: 12px auto 0;
    border-radius: 2px;
}

/* Styles Section */
.styles-section {
    margin-bottom: 80px;
}

/* Styles Grid */
.styles-grid {
    display: grid;
    gap: 24px;
    margin-bottom: 60px;
}

/* Styles Grid Layout */
.styles-grid.masonry {
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
}

/* Style Card - Simplified Design */
.style-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    cursor: pointer;
    border: 1px solid #f0f0f0;
}

.style-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-blue-light);
}

.style-card-image {
    height: 200px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 100%);
}

.style-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.style-card:hover .style-card-image img {
    transform: scale(1.05);
}

.style-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    color: #999;
    font-size: 16px;
    font-weight: 500;
}

.style-card-content {
    padding: 20px;
}

.style-title {
    font-size: 18px;
    font-weight: 600;
    color: #111;
    line-height: 1.3;
    margin: 0 0 12px 0;
}

.style-features {
    margin: 0;
}

.features-text {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}



/* Cases Section */
.cases-section {
    margin-top: 40px;
}

/* Content Grid - Masonry Layout */

.content-grid.masonry {
    columns: 4;
    column-gap: 20px;
    column-fill: balance;
}

/* Content Cards */
.content-card {
    display: inline-block;
    width: 100%;
    margin-bottom: 20px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    break-inside: avoid;
}

.content-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-image {
    width: 100%;
    height: auto;
    display: block;
    background: #f5f5f5;
    position: relative;
}

.card-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.content-card:hover .card-image img {
    transform: scale(1.02);
}

/* Enhanced mobile optimizations for overlay effects */
@media (max-width: 768px) {
    .overlay-btn {
        width: 32px;
        height: 32px;
        border-radius: 16px;
        font-size: 14px;
        backdrop-filter: blur(10px) saturate(140%);
    }
    
    .card-overlay {
        opacity: 1;
        transform: translateY(0);
        transition: none;
    }
    
    .content-card:hover .overlay-btn {
        animation: none;
    }
    
    .overlay-btn:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.08);
    }
    
    .card-likes {
        padding: 3px 6px;
        font-size: 11px;
        border-radius: 10px;
    }
    
    .content-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1), 0 2px 12px rgba(0, 0, 0, 0.06);
    }
}

.overlay-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px) saturate(150%);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

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

.overlay-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px) saturate(180%);
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.overlay-btn:hover::before {
    opacity: 1;
}

.overlay-btn:active {
    transform: scale(1.05) translateY(-1px);
    transition: transform 0.1s ease;
}

/* Like Button States - Enhanced */
.like-btn {
    color: rgba(102, 102, 102, 0.8);
    position: relative;
}

.like-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(231, 76, 60, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.like-btn:hover {
    color: #e74c3c;
    transform: scale(1.05);
}

.like-btn:hover::after {
    width: 100%;
    height: 100%;
    background: rgba(231, 76, 60, 0.15);
}

.like-btn.liked {
    background: rgba(231, 76, 60, 0.12);
    backdrop-filter: blur(8px);
    color: #e74c3c;
    animation: likeButtonBounce 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.like-btn.liked:hover {
    background: rgba(231, 76, 60, 0.2);
    backdrop-filter: blur(10px);
    color: #c0392b;
    transform: scale(1.1);
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.15), 0 4px 12px rgba(231, 76, 60, 0.2);
}

@keyframes likeButtonBounce {
    0% { 
        transform: scale(1); 
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4);
    }
    30% { 
        transform: scale(1.25); 
        background: rgba(231, 76, 60, 0.25);
        box-shadow: 0 0 0 8px rgba(231, 76, 60, 0.15);
    }
    60% {
        transform: scale(1.05);
        background: rgba(231, 76, 60, 0.18);
        box-shadow: 0 0 0 12px rgba(231, 76, 60, 0.08);
    }
    100% { 
        transform: scale(1.1); 
        background: rgba(231, 76, 60, 0.12);
        box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
    }
}

/* Enhanced animations */
@keyframes likePulse {
    0% { 
        color: #e74c3c; 
    }
    50% { 
        color: #c0392b; 
    }
    100% { 
        color: #e74c3c; 
    }
}

@keyframes overlayButtonGlow {
    0% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    }
    50% {
        box-shadow: 0 6px 16px rgba(37, 99, 235, 0.15), 0 4px 8px rgba(37, 99, 235, 0.1);
    }
    100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    }
}

/* Trigger glow animation on card hover */
.content-card:hover .overlay-btn {
    animation: overlayButtonGlow 2s ease-in-out infinite;
}

.card-info {
    padding: 16px;
}

.card-title {
    font-size: 14px;
    font-weight: 600;
    color: #111;
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.card-style {
    font-size: 12px;
    color: #666;
    background: #f0f0f0;
    padding: 4px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-likes {
    font-size: 12px;
    color: rgba(153, 153, 153, 0.9);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 4px 8px;
    border-radius: 12px;
    background: rgba(249, 250, 251, 0.8);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(229, 231, 235, 0.5);
    position: relative;
    overflow: hidden;
}

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

.card-likes:hover::before {
    opacity: 1;
}

.card-likes.liked {
    color: #e74c3c;
    font-weight: 600;
    background: rgba(254, 247, 247, 0.9);
    backdrop-filter: blur(8px);
    border-color: rgba(231, 76, 60, 0.2);
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.1);
    transform: scale(1.02);
}

/* Placeholder for missing images */
.image-placeholder {
    height: 200px;
    background: linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 14px;
    font-weight: 500;
}





/* Loading State - Modern Design */
.loading-container {
    text-align: center;
    padding: 80px 20px;
    color: #666;
    position: relative;
    overflow: hidden;
}

.modern-loading {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 20px;
    padding: 60px 40px;
    margin: 40px auto;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    position: relative;
}

.modern-loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.loading-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 32px;
    position: relative;
}

.loading-dots {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.loading-dots .dot {
    width: 12px;
    height: 12px;
    background: var(--primary-blue);
    border-radius: 50%;
    animation: loading-bounce 1.4s ease-in-out both infinite;
}

.loading-dots .dot:nth-child(1) { animation-delay: -0.32s; }
.loading-dots .dot:nth-child(2) { animation-delay: -0.16s; }
.loading-dots .dot:nth-child(3) { animation-delay: 0s; }

@keyframes loading-bounce {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.loading-icon {
    font-size: 48px;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.loading-content h3 {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #1e293b 0%, var(--primary-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loading-content p {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 24px;
    line-height: 1.6;
    font-weight: 400;
}

.loading-progress {
    width: 200px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue));
    border-radius: 2px;
    width: 40%;
    animation: progress-slide 2s ease-in-out infinite;
}

@keyframes progress-slide {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(250%); }
    100% { transform: translateX(-100%); }
}

/* Mobile optimization */
@media (max-width: 768px) {
    .modern-loading {
        margin: 20px;
        padding: 40px 20px;
    }
    
    .loading-content h3 {
        font-size: 24px;
    }
    
    .loading-content p {
        font-size: 14px;
    }
}

/* No Results */
.no-results {
    text-align: center;
    padding: 80px 20px;
    color: #666;
}

.no-results-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.no-results h3 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.no-results p {
    font-size: 16px;
    opacity: 0.8;
}

/* Load More */
.load-more {
    text-align: center;
    margin: 40px 0;
}

.load-more-btn {
    padding: 12px 32px;
    border: 2px solid #e1e1e1;
    border-radius: 24px;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    border-color: #111;
    color: #111;
    transform: translateY(-2px);
}

/* Search Modal - Simplified */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 100px 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-modal.open {
    opacity: 1;
    visibility: visible;
}

.search-container {
    width: 100%;
    max-width: 500px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.search-modal.open .search-container {
    transform: translateY(0);
}

.modal-search-input {
    width: 100%;
    height: 60px;
    border: none;
    background: #fff;
    font-size: 18px;
    color: #111;
    padding: 0 24px;
    outline: none;
}

.modal-search-input::placeholder {
    color: #999;
}

.search-results {
    max-height: 300px;
    overflow-y: auto;
    border-top: 1px solid #f0f0f0;
}

.search-result-item {
    padding: 16px 24px;
    border-bottom: 1px solid #f8f8f8;
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-result-item:hover {
    background: #f8f8f8;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-title {
    font-size: 15px;
    font-weight: 500;
    color: #111;
    margin-bottom: 4px;
}

.search-result-type {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Error State */
.error-banner {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 12px 24px;
    border-radius: 8px;
    margin: 0 24px 40px;
    font-size: 14px;
    text-align: center;
}

/* Mobile Header - Single Row Design */
@media (max-width: 768px) {
    .nav {
        height: 56px; /* Reduced height for single row */
    }
    
    .nav-content {
        padding: 8px 16px;
        flex-wrap: nowrap; /* Single row layout */
        align-items: center;
        justify-content: space-between;
    }
    
    /* Logo stays on left */
    .logo {
        font-size: 16px;
        flex-shrink: 0;
    }
    
    /* Hide desktop search on mobile */
    .desktop-search {
        display: none;
    }
    
    /* Nav actions on right */
    .nav-actions {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
    }
    
    /* Mobile search button - show only on mobile */
    .mobile-search-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border: none;
        background: rgba(0, 122, 255, 0.1);
        border-radius: 12px;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .mobile-search-btn:hover {
        background: rgba(0, 122, 255, 0.2);
        transform: translateY(-1px);
    }
    
    .search-trigger-icon {
        font-size: 16px;
        color: #007AFF;
    }
    
    .inspire-btn {
        padding: 8px 10px;
        min-width: 40px;
        height: 40px;
        border-radius: 12px;
        /* Reduce animation intensity on mobile for better performance */
        animation: inspireMeGlowMobile 5s ease-in-out infinite;
    }
    
    .inspire-text {
        display: none;
    }
    
    .inspire-icon {
        font-size: 16px;
        animation: inspireIconSparkleMobile 4.5s ease-in-out infinite;
    }
    
    .calculator-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 12px;
        text-decoration: none;
        background: rgba(255, 149, 0, 0.1);
        transition: all 0.3s ease;
    }
    
    .calculator-btn:hover {
        background: rgba(255, 149, 0, 0.2);
        transform: translateY(-1px);
    }
    
    .calculator-text {
        display: none;
    }
    
    .calculator-icon {
        font-size: 16px;
        color: #FF9500;
    }
    
    .content-header {
        padding: 80px 16px 16px; /* Reduced top padding for smaller header */
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .stats-bar {
        gap: 24px;
        padding: 16px 0;
    }
    
    .stat-item {
        padding: 12px 16px;
        min-width: 60px;
    }
    
    .stat-number {
        font-size: 24px;
        margin-bottom: 6px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    .main-content {
        padding: 0 16px 60px;
    }
    
    .content-grid {
        column-gap: 16px;
    }
    
    .content-card {
        margin-bottom: 16px;
    }
    
    .filter-tabs {
        padding: 0 16px;
        gap: 4px;
    }
    
    .tab-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .tab-btn.active {
        box-shadow: 0 3px 8px rgba(0, 122, 255, 0.3);
        transform: translateY(-0.5px);
    }
}

@media (max-width: 480px) {
    .nav {
        height: 52px; /* Even more compact for small screens */
    }
    
    .nav-content {
        padding: 6px 12px;
    }
    
    .logo {
        font-size: 15px;
    }
    
    .nav-actions {
        gap: 6px;
    }
    
    .mobile-search-btn,
    .inspire-btn,
    .calculator-btn {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }
    
    .inspire-btn {
        /* Further reduce animation for very small screens */
        animation: inspireMeGlowMinimal 6s ease-in-out infinite;
    }
    
    .inspire-icon {
        font-size: 14px;
        animation: inspireIconSparkleMinimal 5s ease-in-out infinite;
    }
    
    .search-trigger-icon,
    .calculator-icon {
        font-size: 14px;
    }
    
    .language-btn {
        padding: 6px;
        min-width: 36px;
        height: 36px;
        font-size: 11px;
    }
    
    .language-icon {
        font-size: 14px;
    }
    
    .language-dropdown {
        min-width: 150px;
        max-height: 200px;
        right: -12px;
    }
    
    .content-header {
        padding: 76px 12px 12px; /* Reduced for smaller header */
    }
    
    .page-title {
        font-size: 24px;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .nav {
        height: 48px; /* Very compact for tiny screens */
    }
    
    .nav-content {
        padding: 4px 8px;
    }
    
    .logo {
        font-size: 14px;
    }
    
    .nav-actions {
        gap: 4px;
    }
    
    .mobile-search-btn,
    .inspire-btn,
    .calculator-btn {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }
    
    .search-trigger-icon,
    .calculator-icon,
    .inspire-icon {
        font-size: 12px;
    }
    
    .content-header {
        padding: 70px 8px 8px; /* Even more compact */
    }
    
    .language-icon {
        font-size: 13px;
    }
    
    .language-dropdown {
        min-width: 140px;
        max-height: 180px;
        right: -8px;
    }
    
    .content-header {
        padding: 86px 8px 8px;
    }
    
    .page-title {
        font-size: 22px;
    }
    
    .page-subtitle {
        font-size: 14px;
    }
    
    .stats-bar {
        flex-direction: column;
        gap: 16px;
    }
    
    .main-content {
        padding: 0 12px 40px;
    }
    
    .content-grid {
        column-gap: 12px;
    }
    
    .content-card {
        margin-bottom: 12px;
    }
    
    .card-info {
        padding: 12px;
    }
    
    .search-modal {
        padding: 60px 12px;
    }
} 

@media (max-width: 1200px) {
    .content-grid.masonry {
        columns: 3;
    }
    
    .styles-grid.masonry {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

@media (max-width: 900px) {
    .content-grid.masonry {
        columns: 2;
    }
    
    .styles-grid.masonry {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .filter-tabs {
        padding: 0 16px;
        gap: 6px;
    }
    
    .tab-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .tab-btn.active {
        box-shadow: 0 3px 8px rgba(0, 122, 255, 0.3);
        transform: translateY(-0.5px);
    }
    
    .section-title {
        font-size: 24px;
        margin-bottom: 24px;
    }
    
    .style-card-content {
        padding: 20px;
    }
    
    .style-title {
        font-size: 18px;
    }
    
    .styles-section {
        margin-bottom: 60px;
    }
}

@media (max-width: 600px) {
    .content-grid.masonry {
        columns: 1;
    }
    
    .styles-grid.masonry {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .main-content {
        padding: 0 16px 60px;
    }
    
    .filter-tabs {
        padding: 0 12px;
        margin-bottom: 24px;
    }
    
    .tab-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .tab-btn.active {
        box-shadow: 0 2px 6px rgba(0, 122, 255, 0.3);
        transform: translateY(-0.5px);
    }
    
    .search-page {
        margin-top: 20px;
        min-height: 85vh;
    }
    
    .search-page-header {
        padding: 16px;
    }
    
    .search-page-input {
        height: 44px;
        font-size: 14px;
    }
    
    .search-submit-btn {
        height: 44px;
        padding: 0 16px;
        font-size: 14px;
    }
    
    .search-results-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    
    .section-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .style-card-image {
        height: 160px;
    }
    
    .style-card-content {
        padding: 16px;
    }
    
    .style-title {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .features-text {
        font-size: 13px;
    }
    
    .feature-tag {
        font-size: 11px;
        padding: 3px 8px;
    }
    
    .elements-text {
        font-size: 12px;
    }
    
    .styles-section {
        margin-bottom: 40px;
    }
    
    .cases-section {
        margin-top: 20px;
    }
    
    .loading-container {
        padding: 60px 20px;
    }
    
    .loading-spinner {
        width: 36px;
        height: 36px;
        margin-bottom: 20px;
    }
    
    .loading-container h3 {
        font-size: 20px;
    }
    
    .loading-container p {
        font-size: 14px;
    }
    
    .no-results {
        padding: 60px 20px;
    }
    
    .no-results-icon {
        font-size: 36px;
    }
    
    .no-results h3 {
        font-size: 20px;
    }
    
    .no-results p {
        font-size: 14px;
    }
}

/* ==========================================================================
   Inspire Me Modal Styles
   ========================================================================== */

/* Modal Overlay */
.inspire-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: modalFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(8px);
    }
}

/* Modal Container */
.inspire-modal {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    max-width: 720px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 
        0 16px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.9);
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    backdrop-filter: blur(12px);
}

@keyframes modalSlideIn {
    from {
        transform: translateY(40px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Modal Header */
.inspire-modal-header {
    padding: 28px 40px 20px 40px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    position: relative;
    min-height: 80px;
}

.inspire-modal-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 16px;
    letter-spacing: -0.4px;
}

.inspire-title-icon {
    font-size: 30px;
    color: var(--primary-blue);
    animation: sparkleSimple 3s ease-in-out infinite;
}

@keyframes sparkleSimple {
    0%, 100% { 
        transform: rotate(0deg) scale(1); 
    }
    50% { 
        transform: rotate(15deg) scale(1.1); 
    }
}

.inspire-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    border-radius: 12px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.inspire-modal-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
    transform: scale(1.1);
}

/* Modal Content */
.inspire-modal-content {
    padding: 28px 40px 40px 40px;
    overflow-y: auto;
    max-height: calc(85vh - 120px);
    background: transparent;
}

.inspire-description {
    text-align: center;
    margin-bottom: 28px;
    padding: 0 20px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inspire-description p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
    font-weight: 500;
    max-width: 550px;
    margin: 0 auto;
    letter-spacing: -0.1px;
}

/* Dice Container */
.inspire-dice-container {
    text-align: center;
    margin-bottom: 36px;
    padding: 4px 0;
}

.inspire-dice {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid var(--primary-blue);
    border-radius: 12px;
    width: 72px;
    height: 72px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 16px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 2px 8px rgba(37, 99, 235, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Dice dots using CSS */
.inspire-dice::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        /* Top row dots */
        radial-gradient(circle at 25% 25%, var(--primary-blue) 3px, transparent 3px),
        radial-gradient(circle at 50% 25%, var(--primary-blue) 3px, transparent 3px),
        radial-gradient(circle at 75% 25%, var(--primary-blue) 3px, transparent 3px),
        /* Middle row dots */
        radial-gradient(circle at 25% 50%, var(--primary-blue) 3px, transparent 3px),
        radial-gradient(circle at 50% 50%, var(--primary-blue) 3px, transparent 3px),
        radial-gradient(circle at 75% 50%, var(--primary-blue) 3px, transparent 3px),
        /* Bottom row dots */
        radial-gradient(circle at 25% 75%, var(--primary-blue) 3px, transparent 3px),
        radial-gradient(circle at 50% 75%, var(--primary-blue) 3px, transparent 3px),
        radial-gradient(circle at 75% 75%, var(--primary-blue) 3px, transparent 3px);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    opacity: 0.4;
    border-radius: 10px;
}

/* Dice frame lines for 3D effect */
.inspire-dice::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 10px;
    background: linear-gradient(
        135deg,
        transparent 0%,
        rgba(37, 99, 235, 0.1) 25%,
        transparent 50%,
        rgba(37, 99, 235, 0.1) 75%,
        transparent 100%
    );
    pointer-events: none;
}

.inspire-dice:hover:not(:disabled) {
    transform: translateY(-4px) scale(1.08) rotate(3deg);
    border-color: var(--accent-blue);
    box-shadow: 
        0 12px 24px rgba(37, 99, 235, 0.25),
        inset 0 2px 0 rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.95);
}

.inspire-dice:hover:not(:disabled)::before {
    opacity: 0.7;
}

.inspire-dice:hover:not(:disabled)::after {
    background: linear-gradient(
        135deg,
        rgba(37, 99, 235, 0.1) 0%,
        rgba(37, 99, 235, 0.2) 25%,
        rgba(37, 99, 235, 0.1) 50%,
        rgba(37, 99, 235, 0.2) 75%,
        rgba(37, 99, 235, 0.1) 100%
    );
}

.inspire-dice:active:not(:disabled) {
    transform: translateY(-2px) scale(1.02);
}

.inspire-dice:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.dice-face {
    display: none;
}

.inspire-dice.rolling {
    animation: diceRolling 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.inspire-dice.rolling::before {
    animation: diceDotsRoll 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes diceRolling {
    0% { transform: rotateZ(0deg) scale(1); }
    25% { transform: rotateZ(90deg) scale(1.1); }
    50% { transform: rotateZ(180deg) scale(1.2); }
    75% { transform: rotateZ(270deg) scale(1.1); }
    100% { transform: rotateZ(360deg) scale(1); }
}

@keyframes diceDotsRoll {
    0% { opacity: 0.4; }
    25% { opacity: 0.2; }
    50% { opacity: 0.8; }
    75% { opacity: 0.3; }
    100% { opacity: 0.4; }
}

.dice-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-blue);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Image Gallery */
.inspire-image-gallery {
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: flex-start;
    padding: 0 20px;
}

/* Image Frame */
.inspire-image-frame {
    background: var(--surface-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.12),
        0 0 0 4px var(--surface-white),
        0 0 0 5px var(--border-light);
    transition: all 0.3s ease;
    animation: frameSlideIn 0.4s ease forwards;
    opacity: 0;
    transform: translateY(20px);
    position: relative;
    flex: 1;
    max-width: 280px;
    min-width: 260px;
}

/* Classic photo frame shadow */
.inspire-image-frame::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(
        135deg,
        rgba(139, 69, 19, 0.3) 0%,
        rgba(160, 82, 45, 0.2) 25%,
        rgba(205, 133, 63, 0.1) 50%,
        rgba(222, 184, 135, 0.2) 75%,
        rgba(139, 69, 19, 0.3) 100%
    );
    border-radius: 10px;
    z-index: -1;
}

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

.inspire-image-frame.rolling {
    animation: frameFlipOut 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes frameFlipOut {
    to {
        opacity: 0;
        transform: rotateY(90deg) scale(0.8);
    }
}

.inspire-image-frame:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.2),
        0 0 0 4px var(--surface-white),
        0 0 0 5px var(--primary-blue);
}

/* Inspire overlay styles for clickable frames */
.inspire-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(45, 108, 223, 0.85) 0%,
        rgba(45, 108, 223, 0.75) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.inspire-overlay-content {
    text-align: center;
    color: white;
    padding: 16px;
}

.inspire-overlay-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.inspire-overlay-content p {
    font-size: 13px;
    font-weight: 400;
    margin: 0;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.inspire-image-frame.inspire-clickable:hover .inspire-overlay {
    opacity: 1;
}

.inspire-frame-inner {
    padding: 8px;
    background: var(--surface-white);
    border-radius: 4px;
    position: relative;
}

.inspire-frame-inner img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 2px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.inspire-image-frame:hover .inspire-frame-inner img {
    transform: scale(1.03);
}

/* Clickable Image Frame */
.inspire-image-frame.clickable {
    cursor: pointer;
}

.inspire-image-frame.clickable:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 
        0 16px 40px rgba(0, 0, 0, 0.2),
        0 0 0 4px var(--surface-white),
        0 0 0 6px var(--primary-blue);
}

/* Overlay for View Details */
.inspire-overlay {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.inspire-image-frame.clickable:hover .inspire-overlay {
    opacity: 1;
    transform: scale(1);
}

.inspire-overlay-content {
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.inspire-view-icon {
    font-size: 24px;
    display: block;
    animation: pulse 2s infinite;
}

.inspire-view-text {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .inspire-modal {
        margin: 16px;
        max-height: calc(100vh - 32px);
        border-radius: 18px;
    }
    
    .inspire-modal-header {
        padding: 20px 28px 16px 28px;
        min-height: 70px;
    }
    
    .inspire-modal-title {
        font-size: 24px;
        gap: 12px;
    }
    
    .inspire-title-icon {
        font-size: 26px;
    }
    
    .inspire-modal-close {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    
    .inspire-modal-content {
        padding: 24px 28px 32px 28px;
    }
    
    .inspire-description {
        margin-bottom: 24px;
        padding: 0 12px;
        min-height: 45px;
    }
    
    .inspire-description p {
        font-size: 15px;
        line-height: 1.4;
    }
    
    .inspire-dice-container {
        margin-bottom: 24px;
    }
    
    .inspire-dice {
        width: 64px;
        height: 64px;
    }
    
    .inspire-dice::before {
        background-image: 
            /* Top row dots */
            radial-gradient(circle at 25% 25%, var(--primary-blue) 2.5px, transparent 2.5px),
            radial-gradient(circle at 50% 25%, var(--primary-blue) 2.5px, transparent 2.5px),
            radial-gradient(circle at 75% 25%, var(--primary-blue) 2.5px, transparent 2.5px),
            /* Middle row dots */
            radial-gradient(circle at 25% 50%, var(--primary-blue) 2.5px, transparent 2.5px),
            radial-gradient(circle at 50% 50%, var(--primary-blue) 2.5px, transparent 2.5px),
            radial-gradient(circle at 75% 50%, var(--primary-blue) 2.5px, transparent 2.5px),
            /* Bottom row dots */
            radial-gradient(circle at 25% 75%, var(--primary-blue) 2.5px, transparent 2.5px),
            radial-gradient(circle at 50% 75%, var(--primary-blue) 2.5px, transparent 2.5px),
            radial-gradient(circle at 75% 75%, var(--primary-blue) 2.5px, transparent 2.5px);
    }
    
    .dice-label {
        font-size: 13px;
    }
    
    .inspire-image-gallery {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }
    
    .inspire-image-frame {
        max-width: 280px;
        width: 100%;
    }
    
    .inspire-frame-inner img {
        height: 180px;
    }
    
    /* Mobile touch interactions */
    .inspire-image-frame.clickable:active {
        transform: translateY(-2px) scale(1.01);
    }
    
    .inspire-view-text {
        font-size: 11px;
    }
    
    .inspire-view-icon {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .inspire-modal-overlay {
        padding: 12px;
    }
    
    .inspire-modal {
        border-radius: 16px;
    }
    
    .inspire-modal-header {
        padding: 18px 20px 14px 20px;
    }
    
    .inspire-modal-title {
        font-size: 18px;
        gap: 8px;
    }
    
    .inspire-title-icon {
        font-size: 20px;
    }
    
    .inspire-modal-close {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
    
    .inspire-modal-content {
        padding: 16px 20px 20px 20px;
    }
    
    .inspire-description p {
        font-size: 15px;
    }
    
    .inspire-dice-container {
        margin-bottom: 20px;
    }
    
    .inspire-dice {
        width: 56px;
        height: 56px;
    }
    
    .inspire-dice::before {
        background-image: 
            /* Top row dots */
            radial-gradient(circle at 25% 25%, var(--primary-blue) 2px, transparent 2px),
            radial-gradient(circle at 50% 25%, var(--primary-blue) 2px, transparent 2px),
            radial-gradient(circle at 75% 25%, var(--primary-blue) 2px, transparent 2px),
            /* Middle row dots */
            radial-gradient(circle at 25% 50%, var(--primary-blue) 2px, transparent 2px),
            radial-gradient(circle at 50% 50%, var(--primary-blue) 2px, transparent 2px),
            radial-gradient(circle at 75% 50%, var(--primary-blue) 2px, transparent 2px),
            /* Bottom row dots */
            radial-gradient(circle at 25% 75%, var(--primary-blue) 2px, transparent 2px),
            radial-gradient(circle at 50% 75%, var(--primary-blue) 2px, transparent 2px),
            radial-gradient(circle at 75% 75%, var(--primary-blue) 2px, transparent 2px);
    }
    
    .dice-label {
        font-size: 12px;
    }
    
    .inspire-image-gallery {
        gap: 16px;
        padding: 0 12px;
    }
    
    .inspire-image-frame {
        max-width: 150px;
        min-width: 130px;
        border-radius: 10px;
    }
    
    .inspire-frame-inner img {
        height: 160px;
    }

    /* Inspire overlay styles for mobile */
    .inspire-overlay-content h4 {
        font-size: 14px;
        margin: 0 0 4px 0;
    }

    .inspire-overlay-content p {
        font-size: 11px;
    }
}

/* ==========================================================================
   Magic Box Inspire Me - Creative Redesign
   ========================================================================== */

/* Enhanced Inspire Modal - Premium Experience */
.inspire-modal-overlay.enhanced-inspire {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    animation: elegantFadeIn 0.8s cubic-bezier(0.23, 1, 0.320, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

@keyframes elegantFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(20px);
    }
}

/* Premium Modal Container - Optimized for First Screen Visibility */
.inspire-modal.premium-experience {
    background: linear-gradient(145deg, #ffffff 0%, #fafbfb 100%);
    border-radius: 28px;
    max-width: 1200px;
    width: 100%;
    max-height: 95vh;
    height: auto;
    min-height: 60vh;
    overflow: hidden;
    box-shadow: 
        0 40px 80px -20px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    animation: premiumEntrance 1s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

@keyframes premiumEntrance {
    from {
        opacity: 0;
        transform: scale(0.85) translateY(60px);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0px);
    }
}

/* Enhanced Header Styles */
.inspire-modal-header.elegant-header {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 0;
    min-height: auto;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 32px 40px 32px 40px;
}

.title-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.main-icon {
    font-size: 42px;
    animation: iconFloat 4s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(5deg); }
}

.title-text h2 {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, #1e293b 0%, var(--primary-blue) 70%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 4px 0;
    letter-spacing: -0.8px;
}

.title-text p {
    font-size: 16px;
    color: #64748b;
    margin: 0;
    font-weight: 400;
}

.elegant-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border: none;
    background: rgba(248, 250, 252, 0.9);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.elegant-close span {
    font-size: 24px;
    color: #64748b;
    font-weight: 300;
    line-height: 1;
}

.elegant-close:hover {
    background: rgba(239, 68, 68, 0.1);
    transform: scale(1.1);
}

.elegant-close:hover span {
    color: #ef4444;
}

/* Mobile responsive for elegant close button */
@media (max-width: 768px) {
    .elegant-close {
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
    }
    
    .elegant-close span {
        font-size: 20px;
    }
}

/* Enhanced Content Container */
.inspire-modal-content.enhanced-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

/* Premium Mood Selection - Optimized Spacing */
.mood-selection-stage.premium-selection {
    padding: 32px 40px 24px;
    text-align: center;
    position: relative;
}

.intro-section {
    margin-bottom: 48px;
    position: relative;
}

.intro-decoration {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 30px;
}

.decoration-orb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: orbFloat 4s ease-in-out infinite;
}

.orb-1 {
    background: linear-gradient(135deg, var(--primary-blue), #06b6d4);
    animation-delay: 0s;
}

.orb-2 {
    background: linear-gradient(135deg, #8b5cf6, #c084fc);
    animation-delay: 0.8s;
}

.orb-3 {
    background: linear-gradient(135deg, #10b981, #34d399);
    animation-delay: 1.6s;
}

@keyframes orbFloat {
    0%, 100% { transform: translateY(0px) scale(1); opacity: 0.8; }
    50% { transform: translateY(-20px) scale(1.2); opacity: 1; }
}

.intro-section h3 {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, #1e293b 0%, var(--primary-blue) 60%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 40px 0 20px 0;
    letter-spacing: -0.8px;
    line-height: 1.2;
}

.intro-section p {
    font-size: 19px;
    color: #475569;
    font-weight: 400;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Legacy mood styles - replaced by enhanced version */

/* Discovery Stage */
.discovery-stage {
    padding: 60px 40px;
    text-align: center;
    position: relative;
}

.magic-crystal {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 40px;
}

.crystal-core {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-blue), #8b5cf6, #06b6d4);
    border-radius: 50%;
    animation: crystalPulse 2s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

@keyframes crystalPulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(180deg); }
}

.crystal-glow {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: radial-gradient(circle, var(--primary-blue) 0%, transparent 70%);
    border-radius: 50%;
    animation: glowPulse 3s ease-in-out infinite;
    z-index: 1;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.2); }
}

.energy-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--color);
    border-radius: 50%;
    animation: particleOrbit 4s linear infinite;
    animation-delay: var(--delay);
}

.particle:nth-child(1) { top: 0; left: 50%; }
.particle:nth-child(2) { top: 25%; right: 0; }
.particle:nth-child(3) { bottom: 0; right: 25%; }
.particle:nth-child(4) { bottom: 25%; left: 0; }
.particle:nth-child(5) { top: 75%; left: 25%; }
.particle:nth-child(6) { top: 50%; right: 25%; }

@keyframes particleOrbit {
    0% { transform: rotate(0deg) translateX(60px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(60px) rotate(-360deg); }
}

.discovery-text h3 {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
}

.discovery-text p {
    font-size: 16px;
    color: #64748b;
    font-weight: 400;
}

/* Inspiration Reveal Stage */
.inspiration-reveal {
    padding: 40px;
}

.reveal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.mood-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--mood-color);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.new-magic-btn {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.3s ease;
}

.new-magic-btn:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Magic Cards */
.magic-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.magic-card {
    background: transparent;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    animation: cardReveal 0.8s ease-out both;
    transition: transform 0.4s ease;
}

@keyframes cardReveal {
    from {
        opacity: 0;
        transform: rotateY(90deg) translateY(30px);
    }
    to {
        opacity: 1;
        transform: rotateY(0deg) translateY(0);
    }
}

.magic-card:hover {
    transform: translateY(-8px) scale(1.02);
}

.card-inner {
    position: relative;
    width: 100%;
    height: 300px;
    perspective: 1000px;
}

.card-front {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: white;
    box-shadow: 
        0 16px 32px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.card-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--mood-color), transparent, var(--mood-color));
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.magic-card:hover .card-glow {
    opacity: 0.5;
}

.card-front img {
    width: 100%;
    height: 70%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.magic-card:hover .card-front img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.card-content {
    color: white;
    position: relative;
}

.card-content h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.card-content p {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

.magic-sparkle {
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 20px;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.2) rotate(180deg); opacity: 0.7; }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .inspire-modal.magic-box {
        margin: 10px;
        border-radius: 24px;
        max-height: 95vh;
    }
    
    .mood-selection-stage {
        padding: 30px 20px;
    }
    
    .magic-intro h3 {
        font-size: 24px;
    }
    
    .magic-intro p {
        font-size: 16px;
    }
    
    .mood-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .mood-card {
        padding: 20px 12px;
    }
    
    .mood-emoji {
        font-size: 36px;
    }
    
    .mood-label {
        font-size: 14px;
    }
    
    .discovery-stage {
        padding: 40px 20px;
    }
    
    .magic-crystal {
        width: 100px;
        height: 100px;
    }
    
    .discovery-text h3 {
        font-size: 22px;
    }
    
    .discovery-text p {
        font-size: 14px;
    }
    
    .inspiration-reveal {
        padding: 30px 20px;
    }
    
    .reveal-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .magic-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .card-inner {
        height: 250px;
    }
    
    .card-content h4 {
        font-size: 16px;
    }
    
    .card-content p {
        font-size: 13px;
    }
} 

/* Enhanced Mood Grid */
.enhanced-mood-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.premium-mood-card {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 32px 24px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.320, 1);
    backdrop-filter: blur(15px);
    border: 2px solid transparent;
    animation: cardSlideUp 0.8s ease-out both;
}

@keyframes cardSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.card-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--mood-gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.premium-mood-card:hover .card-background {
    opacity: 0.08;
}

.premium-mood-card:hover {
    transform: translateY(-12px) scale(1.05);
    border-color: var(--mood-color);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 0 0 1px var(--mood-color),
        0 0 40px rgba(var(--mood-color), 0.2);
}

.mood-icon {
    font-size: 56px;
    margin-bottom: 16px;
    display: block;
    animation: iconBounce 3s ease-in-out infinite;
}

@keyframes iconBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) scale(1); }
    40% { transform: translateY(-8px) scale(1.1); }
    60% { transform: translateY(-4px) scale(1.05); }
}

.mood-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
    letter-spacing: -0.3px;
}

.mood-description {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
    font-weight: 400;
}

.card-hover-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--mood-gradient);
    opacity: 0.1;
    transform: translate(-50%, -50%);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
    pointer-events: none;
}

.premium-mood-card:active .card-hover-effect {
    width: 400px;
    height: 400px;
}

/* Premium Discovery Stage */
.discovery-stage.premium-discovery {
    padding: 80px 40px;
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.discovery-animation {
    margin-bottom: 48px;
}

.central-orb {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto;
}

.orb-core {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-blue), #8b5cf6, #06b6d4);
    border-radius: 50%;
    animation: coreRotate 4s linear infinite;
    position: relative;
    z-index: 3;
    box-shadow: 
        0 0 60px rgba(59, 130, 246, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
}

@keyframes coreRotate {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

.orb-rings {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ring {
    position: absolute;
    border: 2px solid;
    border-radius: 50%;
    opacity: 0.3;
}

.ring-1 {
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border-color: var(--primary-blue);
    animation: ringPulse 3s ease-in-out infinite;
}

.ring-2 {
    top: -40px;
    left: -40px;
    right: -40px;
    bottom: -40px;
    border-color: #8b5cf6;
    animation: ringPulse 3s ease-in-out infinite 0.5s;
}

.ring-3 {
    top: -60px;
    left: -60px;
    right: -60px;
    bottom: -60px;
    border-color: #06b6d4;
    animation: ringPulse 3s ease-in-out infinite 1s;
}

@keyframes ringPulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.6; }
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.floating-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--color);
    border-radius: 50%;
    animation: dotOrbit 6s linear infinite;
    animation-delay: var(--delay);
    box-shadow: 0 0 10px var(--color);
}

@keyframes dotOrbit {
    0% { transform: rotate(var(--rotation)) translateX(100px) rotate(calc(-1 * var(--rotation))); }
    100% { transform: rotate(calc(var(--rotation) + 360deg)) translateX(100px) rotate(calc(-1 * (var(--rotation) + 360deg))); }
}

.discovery-content {
    max-width: 500px;
    margin: 0 auto;
}

.discovery-title {
    font-size: 32px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.discovery-subtitle {
    font-size: 18px;
    color: #64748b;
    margin-bottom: 32px;
    line-height: 1.5;
}

.progress-indicator {
    width: 300px;
    height: 6px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    margin: 0 auto;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), #8b5cf6);
    border-radius: 3px;
    transition: width 0.8s cubic-bezier(0.23, 1, 0.320, 1);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

/* Premium Results Stage - Optimized for First Screen */
.inspiration-reveal.premium-results {
    padding: 20px 40px 32px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

/* Creative Control Center - Compact Design for Better Visibility */
.creative-control-center {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
    padding: 0 20px;
}

.mood-showcase-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.98) 100%);
    border-radius: 24px;
    padding: 24px;
    max-width: 600px;
    width: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    animation: showcaseSlideIn 0.8s cubic-bezier(0.23, 1, 0.320, 1);
}

@keyframes showcaseSlideIn {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.showcase-content {
    position: relative;
    z-index: 2;
}

.mood-display {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.mood-avatar {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mood-gradient);
    border-radius: 50%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.avatar-emoji {
    font-size: 36px;
    position: relative;
    z-index: 2;
    animation: avatarFloat 4s ease-in-out infinite;
}

@keyframes avatarFloat {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-4px) scale(1.05); }
}

.avatar-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: var(--mood-gradient);
    border-radius: 50%;
    opacity: 0.3;
    animation: glowPulse 3s ease-in-out infinite;
    z-index: 1;
}

@keyframes glowPulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.2); opacity: 0.6; }
}

.mood-details {
    flex: 1;
}

.mood-name {
    font-size: 24px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 8px 0;
    letter-spacing: -0.4px;
}

.mood-desc {
    font-size: 16px;
    color: #64748b;
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.mood-stats {
    display: flex;
    gap: 16px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(248, 250, 252, 0.8);
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.stat-icon {
    font-size: 14px;
}

.stat-text {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.control-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    border: none;
    position: relative;
    overflow: hidden;
}

.primary-action {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.primary-action:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.4);
}

.secondary-action {
    background: rgba(248, 250, 252, 0.9);
    color: #475569;
    border: 2px solid rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

.secondary-action:hover {
    background: rgba(239, 68, 68, 0.05);
    border-color: rgba(239, 68, 68, 0.2);
    color: #dc2626;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.action-icon {
    font-size: 16px;
    animation: actionIconFloat 3s ease-in-out infinite;
}

.primary-action .action-icon {
    animation-delay: 0s;
}

.secondary-action .action-icon {
    animation-delay: 1.5s;
}

@keyframes actionIconFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-2px) rotate(5deg); }
}

.action-text {
    font-weight: 600;
    letter-spacing: 0.3px;
}

.card-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

.decoration-pattern {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: var(--mood-gradient);
    opacity: 0.03;
    animation: patternRotate 20s linear infinite;
}

@keyframes patternRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Mobile Responsive for Control Center - First Screen Optimized */
@media (max-width: 768px) {
    .creative-control-center {
        padding: 0 16px;
        margin-bottom: 20px;
    }
    
    .mood-showcase-card {
        padding: 20px 16px;
        border-radius: 20px;
    }
    
    .mood-display {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        margin-bottom: 16px;
    }
    
    .mood-avatar {
        width: 70px;
        height: 70px;
    }
    
    .avatar-emoji {
        font-size: 32px;
    }
    
    .mood-name {
        font-size: 20px;
    }
    
    .mood-desc {
        font-size: 14px;
    }
    
    .mood-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .control-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .action-btn {
        padding: 12px 20px;
        justify-content: center;
    }
}

.curated-gallery {
    text-align: center;
}

.gallery-intro {
    margin-bottom: 24px;
}

.gallery-intro h3 {
    font-size: 28px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 12px;
    letter-spacing: -0.4px;
}

.gallery-intro p {
    font-size: 16px;
    color: #64748b;
    margin: 0;
    max-width: 500px;
    margin: 0 auto;
}

.premium-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
}

.premium-inspiration-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.320, 1);
    animation: cardRevealPremium 1s ease-out both;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.04);
    position: relative;
}

@keyframes cardRevealPremium {
    from {
        opacity: 0;
        transform: rotateX(15deg) translateY(50px);
    }
    to {
        opacity: 1;
        transform: rotateX(0deg) translateY(0);
    }
}

.premium-inspiration-card:hover {
    transform: translateY(-16px) scale(1.02);
    box-shadow: 
        0 32px 64px rgba(0, 0, 0, 0.15),
        0 0 0 1px var(--mood-color),
        0 0 50px rgba(var(--mood-color), 0.2);
}

.card-image-container {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}

.premium-inspiration-card:hover .card-image {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    align-items: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.premium-inspiration-card:hover .image-overlay {
    opacity: 1;
}

.overlay-content {
    color: white;
}

.view-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
}

.arrow {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.premium-inspiration-card:hover .arrow {
    transform: translateX(4px);
}

.card-details {
    padding: 20px;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.premium-inspiration-card .card-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    letter-spacing: -0.3px;
}

.card-badge {
    font-size: 20px;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.card-style {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 16px 0;
    font-weight: 500;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.match-indicator {
    font-size: 12px;
    color: var(--mood-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.inspiration-sparkle {
    font-size: 18px;
    animation: sparkleGlow 2s ease-in-out infinite;
}

@keyframes sparkleGlow {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Mobile Responsive Enhancements */
@media (max-width: 768px) {
    .inspire-modal.premium-experience {
        margin: 12px;
        border-radius: 20px;
        max-height: 98vh;
        min-height: 70vh;
    }
    
    .header-content {
        padding: 24px 20px;
    }
    
    .title-text h2 {
        font-size: 24px;
    }
    
    .title-text p {
        font-size: 14px;
    }
    
    .mood-selection-stage.premium-selection {
        padding: 24px 20px 16px;
    }
    
    .intro-section h3 {
        font-size: 28px;
    }
    
    .intro-section p {
        font-size: 16px;
    }
    
    .enhanced-mood-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .premium-mood-card {
        padding: 24px 20px;
    }
    
    .mood-icon {
        font-size: 48px;
    }
    
    .discovery-stage.premium-discovery {
        padding: 60px 20px;
    }
    
    .central-orb {
        width: 120px;
        height: 120px;
    }
    
    .discovery-title {
        font-size: 24px;
    }
    
    .discovery-subtitle {
        font-size: 16px;
    }
    
    .inspiration-reveal.premium-results {
        padding: 16px 20px 24px;
    }
    
    .results-header {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
        text-align: center;
    }
    
    .gallery-intro h3 {
        font-size: 22px;
        margin-bottom: 8px;
    }
    
    .gallery-intro {
        margin-bottom: 20px;
    }
    
    .premium-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .card-image-container {
        height: 200px;
    }
    
    .card-details {
        padding: 20px;
    }
    
    .premium-inspiration-card .card-title {
        font-size: 18px;
    }
}

/* ==========================================
   INFINITE SCROLL STYLES
   ========================================== */

/* Loading More Container */
.loading-more-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    margin-top: 20px;
}

.loading-more {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Loading Spinner */
.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-more-text {
    font-size: 14px;
    font-weight: 500;
    color: #666;
    margin: 0;
}

/* End of Content Styles */
.end-of-content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    margin-top: 40px;
}

.end-indicator {
    text-align: center;
    max-width: 400px;
    padding: 40px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
    color: white;
}

.end-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 20px;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

.end-text {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px 0;
    line-height: 1.4;
}

.end-text small {
    font-size: 14px;
    font-weight: 400;
    opacity: 0.8;
}

.refresh-button {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    margin-top: 10px;
}

.refresh-button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.refresh-button:active {
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .loading-more-container {
        padding: 30px 15px;
    }
    
    .loading-more {
        padding: 15px 20px;
        gap: 10px;
    }
    
    .loading-more-text {
        font-size: 13px;
    }
    
    .end-of-content {
        padding: 40px 15px;
        margin-top: 30px;
    }
    
    .end-indicator {
        padding: 30px 20px;
        border-radius: 15px;
    }
    
    .end-icon {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .end-text {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .end-text small {
        font-size: 13px;
    }
    
    .refresh-button {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* Mobile Search Overlay Styles */
.mobile-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.mobile-search-container {
    background: white;
    border-radius: 16px;
    padding: 50px 20px 20px; /* 增加顶部padding为关闭按钮留出空间 */
    margin: 0 16px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: translateY(-20px);
    animation: slideUp 0.3s ease forwards;
}

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

.mobile-search-form {
    display: flex;
    gap: 12px;
    margin-bottom: 0; /* 移除底部margin，因为没有其他内容 */
}

.mobile-search-input {
    flex: 1;
    height: 48px;
    padding: 0 16px;
    border: 2px solid #e1e1e1;
    border-radius: 12px;
    background: #f8f8f8;
    font-size: 16px;
    color: #111;
    outline: none;
    transition: all 0.3s ease;
}

.mobile-search-input:focus {
    border-color: var(--primary-blue);
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.mobile-search-submit {
    width: 48px;
    height: 48px;
    border: none;
    background: var(--primary-blue);
    border-radius: 12px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.mobile-search-submit:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.mobile-search-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 18px;
    color: #666;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mobile-search-close:hover {
    background: #e8e8e8;
    color: #333;
    transform: scale(1.05);
} 