/* ===== SparkleClaws — Fun Nail Salon Theme ===== */
:root {
    --pink: #ff6b9d;
    --pink-light: #ffd1e0;
    --pink-soft: #fff0f5;
    --gold: #ffd700;
    --gold-dark: #e6b800;
    --lilac: #c9a0dc;
    --text: #2d1b2e;
    --text-muted: #7a5a6a;
    --white: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.85);
    --shadow: 0 10px 40px rgba(255, 107, 157, 0.15);
    --radius: 20px;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Poppins', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text);
    background: linear-gradient(160deg, #fff5f8 0%, #fce4ec 40%, #f3e5f5 100%);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Glitter particles */
.glitter-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.glitter {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0.6;
    animation: float-glitter 8s linear infinite;
    box-shadow: 0 0 6px var(--gold);
}

@keyframes float-glitter {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.7; }
    90% { opacity: 0.5; }
    100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 2rem;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 107, 157, 0.15);
    box-shadow: 0 4px 20px rgba(255, 107, 157, 0.08);
}

.nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.8rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active { color: var(--pink); }

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--pink);
    border-radius: 2px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--pink);
}

/* Hero */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 2rem 5rem;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
    z-index: 1;
}

.hero-content { flex: 1; max-width: 560px; }

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    line-height: 1.15;
    margin-bottom: 1.2rem;
    color: var(--text);
}

.gradient-text {
    background: linear-gradient(120deg, var(--pink), var(--lilac), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 420px;
}

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.6rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
    background: linear-gradient(135deg, var(--pink), #ff8fab);
    color: white;
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
}

.btn-primary:hover { box-shadow: 0 8px 28px rgba(255, 107, 157, 0.5); }

.btn-secondary {
    background: white;
    color: var(--pink);
    border: 2px solid var(--pink-light);
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

.btn-secondary:hover { border-color: var(--pink); }

/* Floating nails decoration */
.hero-visual {
    flex: 1;
    position: relative;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-nail {
    position: absolute;
    width: 48px;
    height: 110px;
    border-radius: 40% 40% 20% 20% / 60% 60% 40% 40%;
    background: linear-gradient(180deg, #f8b4c4, #ff6b9d);
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.35), inset 0 -10px 20px rgba(255,255,255,0.3);
    animation: float 4s ease-in-out infinite;
}

.nail-1 { left: 20%; top: 20%; transform: rotate(-18deg); animation-delay: 0s; }
.nail-2 { left: 45%; top: 5%; width: 52px; height: 130px; background: linear-gradient(180deg, #c9a0dc, #a55eea); animation-delay: 0.6s; }
.nail-3 { right: 18%; top: 30%; transform: rotate(15deg); background: linear-gradient(180deg, #ffd700, #ffb347); animation-delay: 1.2s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(var(--r, -18deg)); }
    50% { transform: translateY(-18px) rotate(var(--r, -18deg)); }
}

/* Sections */
.section {
    position: relative;
    z-index: 1;
    padding: 4rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.section-header p { color: var(--text-muted); font-size: 1.05rem; }

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.8rem;
}

.gallery-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255, 107, 157, 0.1);
}

.gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 50px rgba(255, 107, 157, 0.22);
}

.card-img-wrap {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

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

.gallery-card:hover .card-img-wrap img { transform: scale(1.05); }

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.35), transparent 50%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-card:hover .card-overlay { opacity: 1; }

.like-btn {
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50px;
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
    cursor: pointer;
    color: var(--pink);
    font-weight: 600;
    transition: background 0.2s;
}

.like-btn.liked { background: var(--pink); color: white; }

.card-body { padding: 1.2rem 1.3rem 1.4rem; }

.card-body h3 {
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.card-meta {
    font-size: 0.8rem;
    color: var(--pink);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.card-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.7rem;
}

.card-body time {
    font-size: 0.75rem;
    color: #aaa;
}

/* Admin post panel */
.admin-post-panel {
    margin-top: 3rem;
    background: linear-gradient(135deg, #fff0f5, #f3e5f5);
    border: 2px dashed var(--pink-light);
    border-radius: var(--radius);
    padding: 1.8rem;
}

.admin-post-panel h3 {
    font-family: var(--font-display);
    color: var(--pink);
    margin-bottom: 0.4rem;
}

.hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
}

.post-form { display: flex; flex-direction: column; gap: 0.8rem; }

.form-row {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.post-form input[type="text"],
.post-form textarea {
    flex: 1;
    min-width: 180px;
    padding: 0.7rem 1rem;
    border: 1.5px solid var(--pink-light);
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    background: white;
    outline: none;
    transition: border-color 0.2s;
}

.post-form input:focus,
.post-form textarea:focus { border-color: var(--pink); }

.file-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1.2rem;
    background: white;
    border: 1.5px solid var(--pink-light);
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: border-color 0.2s;
}

.file-label:hover { border-color: var(--pink); }

.file-label input { display: none; }

.post-preview {
    margin-top: 1.2rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.post-preview img {
    width: 100px;
    height: 75px;
    object-fit: cover;
    border-radius: 8px;
}

.hidden { display: none !important; }

/* Creator */
.creator-section {
    background: linear-gradient(180deg, transparent, rgba(255, 240, 245, 0.6));
    border-radius: 30px;
}

.creator-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

@media (max-width: 860px) {
    .creator-layout { grid-template-columns: 1fr; }
}

.preview-panel {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow);
    text-align: center;
    border: 1px solid rgba(255, 107, 157, 0.12);
}

.hand-preview {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.nails-row {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
}

.nail {
    position: relative;
    background: #f8b4c4;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
            0 8px 20px rgba(0,0,0,0.12),
            inset 0 -8px 16px rgba(255,255,255,0.25),
            inset 0 4px 8px rgba(255,255,255,0.4);
}

/* Shape variants via clip-path / border-radius */
.nail.shape-almond {
    border-radius: 50% 50% 15% 15% / 70% 70% 30% 30%;
}
.nail.shape-coffin {
    border-radius: 8% 8% 4% 4% / 20% 20% 10% 10%;
    clip-path: polygon(10% 0%, 90% 0%, 100% 15%, 100% 100%, 0% 100%, 0% 15%);
}
.nail.shape-stiletto {
    border-radius: 50% 50% 5% 5% / 80% 80% 20% 20%;
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}
.nail.shape-square {
    border-radius: 6px 6px 2px 2px;
}
.nail.shape-oval {
    border-radius: 50% 50% 30% 30% / 60% 60% 40% 40%;
}

/* Length */
.nail.length-short { width: 28px; height: 48px; }
.nail.length-medium { width: 32px; height: 70px; }
.nail.length-long { width: 34px; height: 95px; }
.nail.length-xl { width: 36px; height: 120px; }

/* Glitter overlay */
.nail.has-glitter::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.9) 1px, transparent 1px);
    background-size: 8px 8px;
    opacity: 0.45;
    border-radius: inherit;
    pointer-events: none;
    mix-blend-mode: overlay;
}

/* French tip */
.nail.has-french::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 22%;
    background: var(--accent, #fff);
    border-radius: inherit;
    clip-path: inherit;
}

/* Rhinestone dots */
.nail.has-rhinestones .stone {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fff, var(--gold));
    box-shadow: 0 0 4px var(--gold);
}

.preview-label {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.preview-actions {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Controls */
.controls-panel {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.8rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 107, 157, 0.12);
}

.control-group {
    margin-bottom: 1.4rem;
}

.control-group > label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
    color: var(--text);
}

.option-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pill {
    padding: 0.45rem 0.95rem;
    border-radius: 50px;
    border: 1.5px solid var(--pink-light);
    background: white;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s;
}

.pill:hover { border-color: var(--pink); color: var(--pink); }

.pill.active {
    background: var(--pink);
    border-color: var(--pink);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
}

.color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.swatch {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.swatch:hover { transform: scale(1.12); }

.swatch.active {
    border-color: var(--text);
    box-shadow: 0 0 0 2px white, 0 0 0 4px var(--pink);
}

.checkbox-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.check-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    cursor: pointer;
    color: var(--text-muted);
}

.check-label input { accent-color: var(--pink); width: 16px; height: 16px; }

#patternSelect {
    width: 100%;
    padding: 0.65rem 1rem;
    border-radius: 12px;
    border: 1.5px solid var(--pink-light);
    font-family: inherit;
    font-size: 0.95rem;
    background: white;
    outline: none;
    cursor: pointer;
}

#patternSelect:focus { border-color: var(--pink); }

/* About */
.about-section { padding-bottom: 5rem; }

.about-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    border: 1px solid rgba(255, 107, 157, 0.12);
}

.about-card h2 {
    font-family: var(--font-display);
    margin-bottom: 1rem;
    color: var(--pink);
}

.about-card p {
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.about-card .note {
    font-size: 0.9rem;
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--pink-light);
    color: var(--text);
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 107, 157, 0.12);
}

.footer .tiny { font-size: 0.75rem; margin-top: 0.3rem; opacity: 0.7; }

/* Mobile nav */
@media (max-width: 720px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        gap: 0.8rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    }
    .nav-links.open { display: flex; }
    .nav-toggle { display: block; }
    .hero { flex-direction: column; text-align: center; padding-top: 2.5rem; }
    .hero-sub { margin-left: auto; margin-right: auto; }
    .hero-cta { justify-content: center; }
    .hero-visual { height: 200px; width: 100%; }
}
