/**
 * Theme Presets CSS
 * Professional theme preset definitions for portfolio
 */

/* =========================================================================
   PRESET 1: Midnight Elegance (Dark Professional)
   Deep dark theme with purple/indigo accents, glassmorphism effects
   ========================================================================= */
[data-preset="midnight-elegance"] {
    --color-primary: #8b5cf6;
    --color-secondary: #a78bfa;
    --color-accent: #c4b5fd;
    --color-dark: #0f0a19;
    --color-darker: #050208;
    --color-gray-800: #1e1529;
    --color-gray-900: #120d1a;
    --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.2);
    --shadow-glow-lg: 0 0 60px rgba(139, 92, 246, 0.3);
}

/* =========================================================================
   PRESET 2: Ocean Breeze (Modern Minimal)
   Clean teal/cyan palette with smooth gradients
   ========================================================================= */
[data-preset="ocean-breeze"] {
    --color-primary: #06b6d4;
    --color-secondary: #0891b2;
    --color-accent: #22d3ee;
    --color-dark: #0a1628;
    --color-darker: #040a12;
    --color-gray-800: #172a3a;
    --color-gray-900: #0d1b2a;
    --shadow-glow: 0 0 40px rgba(6, 182, 212, 0.2);
    --shadow-glow-lg: 0 0 60px rgba(6, 182, 212, 0.3);
}

/* =========================================================================
   PRESET 3: Sunset Warmth (Creative Bold)
   Warm orange/rose gradient with vibrant energy
   ========================================================================= */
[data-preset="sunset-warmth"] {
    --color-primary: #f97316;
    --color-secondary: #fb923c;
    --color-accent: #fbbf24;
    --color-dark: #1a0f0a;
    --color-darker: #0d0705;
    --color-gray-800: #2d1f17;
    --color-gray-900: #1a110a;
    --shadow-glow: 0 0 40px rgba(249, 115, 22, 0.2);
    --shadow-glow-lg: 0 0 60px rgba(249, 115, 22, 0.3);
}

/* =========================================================================
   Theme Preview Card Animations
   ========================================================================= */
.theme-preset-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.theme-preset-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.1) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.theme-preset-card:hover::before {
    transform: translateX(100%);
}

.theme-preset-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Active preset indicator */
.theme-preset-card.active {
    border-color: var(--color-primary, #6366f1) !important;
    box-shadow: 0 0 0 2px var(--color-primary, #6366f1), 0 10px 40px rgba(0, 0, 0, 0.3);
}

.theme-preset-card.active::after {
    content: '✓';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--color-primary, #6366f1), var(--color-secondary, #8b5cf6));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: bold;
    z-index: 10;
    animation: checkmark-pop 0.3s ease;
}

@keyframes checkmark-pop {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

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

/* Preview mockup styling */
.preset-preview-mockup {
    position: relative;
    width: 100%;
    height: 140px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--mockup-bg, #0f172a);
}

.preset-preview-mockup .mock-sidebar {
    position: absolute;
    left: 0;
    top: 0;
    width: 22%;
    height: 100%;
    background: var(--mockup-sidebar, rgba(255, 255, 255, 0.05));
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.preset-preview-mockup .mock-nav-items {
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.preset-preview-mockup .mock-nav-item {
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.15);
}

.preset-preview-mockup .mock-nav-item.active {
    background: var(--mockup-primary, #6366f1);
}

.preset-preview-mockup .mock-content {
    position: absolute;
    left: 24%;
    top: 0;
    right: 0;
    height: 100%;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.preset-preview-mockup .mock-heading {
    width: 60%;
    height: 12px;
    border-radius: 6px;
    background: var(--mockup-primary, #6366f1);
}

.preset-preview-mockup .mock-text {
    width: 85%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.2);
}

.preset-preview-mockup .mock-cards {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.preset-preview-mockup .mock-card {
    flex: 1;
    height: 40px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}