:root {
    /* Fluffy Theme Variables */
    --font-primary: 'Quicksand', sans-serif;
    
    /* Layout & Shapes */
    --radius-lg: 30px;
    --radius-md: 20px;
    --radius-pill: 50px;
    
    /* Soft Colors */
    --text-dark: #4a4a4a;
    --text-light: #8a8a8a;
    --card-bg: rgba(255, 255, 255, 0.85);
    --card-bg-hover: rgba(255, 255, 255, 0.95);
    
    /* Soft Shadows */
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.08);
    --shadow-inner: inset 0 0 0 2px rgba(255, 255, 255, 0.6);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html {
    font-family: var(--font-primary);
    color: var(--text-dark);
    scroll-behavior: smooth;
    overflow-x: hidden;
    background-color: #f7f9fc; /* Fallback bg */
}

/* Dynamic Background */
.dynamic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background-color: #ff9a9e; /* Base color */
    transition: background-color 0.8s ease-in-out;
}

.dynamic-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at top left, rgba(255,255,255,0.7), transparent 80%);
    pointer-events: none;
}

/* Common Section Styles */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* Dual Column Layout */
.dual-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}

/* Cards */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-soft), var(--shadow-inner);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover), var(--shadow-inner);
    background: var(--card-bg-hover);
}

.align-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Typography */
.logo-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #ff758c 0%, #ff7eb3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.help-text {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Buttons */
.btn-fluffy {
    display: inline-block;
    background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%);
    color: var(--text-dark);
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 15px 35px;
    border: none;
    border-radius: var(--radius-pill);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05), inset 0 0 0 2px rgba(255,255,255,0.8);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-fluffy:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1), inset 0 0 0 2px rgba(255,255,255,1);
    background: #ffffff;
}

.btn-fluffy:active {
    transform: translateY(1px) scale(0.98);
}

/* Hero Section Specifics */
.hero-section {
    flex-direction: column;
    text-align: center;
}

.hero-card {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

/* Blobs for Hero */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    z-index: 0;
    opacity: 0.6;
    animation: float 8s ease-in-out infinite;
}

.blob-1 {
    width: 300px;
    height: 300px;
    background: #ffb8d2;
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.blob-2 {
    width: 250px;
    height: 250px;
    background: #a1c4fd;
    bottom: 20%;
    right: 20%;
    animation-delay: -4s;
}

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

/* Info Panels (Wheel & Image) */
.info-card {
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    flex: 1;
    color: var(--text-light);
    font-size: 1.2rem;
    text-align: center;
    animation: fadeIn 0.5s ease forwards;
}

.empty-state .emoji {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.hidden {
    display: none !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Image Picker Specifics */
.file-input {
    display: none;
}

.upload-wrapper {
    margin-bottom: 20px;
}

.canvas-wrapper {
    width: 100%;
    max-width: 550px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 3px solid rgba(255,255,255,0.8);
    cursor: crosshair;
    background: white;
    touch-action: none; /* Prevents scroll on drag */
}

#image-canvas {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Zoom Slider */
.zoom-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.4);
    padding: 10px 20px;
    border-radius: var(--radius-pill);
}

.slider {
    -webkit-appearance: none;
    appearance: none;
    width: 150px;
    height: 8px;
    background: #e0e5ec;
    border-radius: 4px;
    outline: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ff758c;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.zoom-val {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
    min-width: 45px;
}

/* Footer Section */
.footer {
    padding: 20px;
    text-align: center;
}

.footer-card {
    padding: 25px 40px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    border-radius: var(--radius-pill);
    gap: 15px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%);
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 700;
    padding: 12px 20px;
    border-radius: var(--radius-pill);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05), inset 0 0 0 2px rgba(255,255,255,0.6);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.06);
    box-shadow: 0 12px 20px rgba(255, 117, 140, 0.25), inset 0 0 0 2px rgba(255,255,255,1);
    color: #ff758c;
}

/* --- Injected Info Content Styles --- */

.info-content {
    width: 100%;
    animation: fadeIn 0.5s ease forwards;
    padding: 10px;
}

.color-showcase {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 25px;
}

.main-swatch {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft), var(--shadow-inner);
    margin-bottom: 15px;
    transition: background-color 0.4s ease;
}

.name-label {
    font-size: 1.5rem;
    color: var(--text-dark);
}

.color-values {
    background: rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-md);
    padding: 15px;
    margin-bottom: 25px;
}

.value-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed rgba(0,0,0,0.1);
}

.value-row:last-child {
    border-bottom: none;
}

.val-label {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-light);
    width: 45px;
}

.val-code {
    flex: 1;
    text-align: left;
    margin-left: 15px;
    font-family: monospace;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.btn-copy {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s;
    user-select: none;
}

.btn-copy:hover {
    transform: scale(1.2) rotate(10deg);
}

.btn-copy:active {
    transform: scale(0.9);
}

.harmonies-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-align: center;
}

.harmony-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 15px;
    justify-items: center;
}

.harmony-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.harmony-card:hover {
    transform: translateY(-5px) scale(1.1);
}

.harmony-swatch {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    box-shadow: var(--shadow-soft), var(--shadow-inner);
    margin-bottom: 8px;
    transition: background-color 0.4s ease;
}

.harmony-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
    text-align: center;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(30px);
    background: var(--text-dark);
    color: white;
    padding: 12px 30px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
    box-shadow: var(--shadow-hover);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* --- Responsive Design --- */

/* Large Screens (1200px) */
@media (max-width: 1200px) {
    .container {
        padding: 0 20px;
    }
}

/* Tablets (992px) */
@media (max-width: 992px) {
    .logo-title {
        font-size: 3.5rem;
    }
    .dual-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    #color-picker-container {
        display: flex;
        justify-content: center;
        width: 100%;
    }
}

/* Mobile Devices (768px) */
@media (max-width: 768px) {
    .logo-title {
        font-size: 2.8rem;
    }
    .subtitle {
        font-size: 1.1rem;
        padding: 0 15px;
    }
    .section {
        padding: 40px 15px;
    }
    .card {
        padding: 25px;
    }
    
    .harmony-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .harmony-swatch {
        width: 70px;
        height: 70px;
    }
    .harmony-label {
        font-size: 0.95rem;
    }
    
    .btn-fluffy, .social-icon {
        padding: 15px 25px;
        font-size: 1.1rem;
    }
    
    .upload-wrapper {
        width: 100%;
        display: flex;
        flex-direction: column;
    }
    .btn-upload {
        width: 100%;
        text-align: center;
    }
    
    .zoom-controls {
        flex-wrap: wrap;
        width: 100%;
        gap: 15px;
        justify-content: center;
    }
    .slider {
        width: 100%;
        flex: 1 1 100%;
    }
    
    .footer-card {
        width: 100%;
        padding: 20px;
    }
    .social-links {
        flex-wrap: wrap;
    }
}

/* Small Mobile (480px) */
@media (max-width: 480px) {
    .logo-title {
        font-size: 2.2rem;
    }
    .main-swatch {
        width: 100px;
        height: 100px;
    }
    .social-links {
        gap: 10px;
        flex-direction: column;
        width: 100%;
    }
    .social-icon {
        width: 100%;
    }
}

