/* ============================
   Princess Theme for 가인공주님
   YASHICA Tank Review Site
   ============================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Great+Vibes&display=swap');

:root {
    --princess-pink: #f8a4c8;
    --princess-rose: #e91e8c;
    --princess-blush: #fff0f5;
    --princess-lavender: #e8d5f5;
    --princess-gold: #d4a843;
    --princess-cream: #fff8f0;
    --princess-deep: #8b2252;
    --princess-white: #fffafd;
    --princess-text: #4a2040;
    --princess-soft: #f5e6f0;
    --shadow-pink: rgba(248, 164, 200, 0.3);
}

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

body {
    font-family: 'Malgun Gothic', '맑은 고딕', sans-serif;
    background: linear-gradient(135deg, var(--princess-blush) 0%, var(--princess-lavender) 50%, var(--princess-cream) 100%);
    color: var(--princess-text);
    min-height: 100vh;
}

/* Sparkle background */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        radial-gradient(2px 2px at 20% 30%, var(--princess-gold) 50%, transparent 50%),
        radial-gradient(2px 2px at 40% 70%, var(--princess-pink) 50%, transparent 50%),
        radial-gradient(1px 1px at 60% 20%, var(--princess-gold) 50%, transparent 50%),
        radial-gradient(2px 2px at 80% 50%, var(--princess-pink) 50%, transparent 50%),
        radial-gradient(1px 1px at 10% 80%, var(--princess-gold) 50%, transparent 50%),
        radial-gradient(1px 1px at 90% 10%, var(--princess-pink) 50%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: sparkle 4s ease-in-out infinite alternate;
}

@keyframes sparkle {
    0% { opacity: 0.3; }
    100% { opacity: 0.7; }
}

/* Navigation */
nav {
    background: linear-gradient(135deg, var(--princess-rose) 0%, var(--princess-pink) 100%);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px var(--shadow-pink);
}

nav .nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

nav .logo {
    font-family: 'Great Vibes', cursive;
    font-size: 1.8rem;
    color: white;
    text-decoration: none;
    padding: 1rem 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.15);
}

nav .logo span {
    font-family: 'Playfair Display', serif;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 2px;
    display: block;
    margin-top: -5px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 0.5rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

nav ul li a:hover,
nav ul li a.active {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 2rem 3rem;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--princess-deep);
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 0 var(--princess-pink);
}

.hero .subtitle {
    font-family: 'Great Vibes', cursive;
    font-size: 1.5rem;
    color: var(--princess-rose);
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.1rem;
    color: var(--princess-text);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

.crown {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* Cards */
.card {
    background: var(--princess-white);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px var(--shadow-pink);
    border: 2px solid rgba(248, 164, 200, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(248, 164, 200, 0.4);
}

.card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--princess-deep);
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--princess-pink);
}

.card h3 {
    font-size: 1.2rem;
    color: var(--princess-rose);
    margin: 1.2rem 0 0.5rem;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.feature-item {
    background: linear-gradient(135deg, var(--princess-blush), var(--princess-soft));
    border-radius: 16px;
    padding: 1.8rem;
    text-align: center;
    border: 1px solid rgba(248, 164, 200, 0.3);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: scale(1.03);
}

.feature-item .icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    display: block;
}

.feature-item h3 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
}

.feature-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #6a3050;
}

/* Spec Table */
.spec-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 1.5rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px var(--shadow-pink);
}

.spec-table th {
    background: linear-gradient(135deg, var(--princess-rose), var(--princess-pink));
    color: white;
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 500;
    font-size: 0.95rem;
}

.spec-table td {
    padding: 0.9rem 1.5rem;
    border-bottom: 1px solid rgba(248, 164, 200, 0.2);
    font-size: 0.95rem;
}

.spec-table tr:nth-child(even) td {
    background: var(--princess-blush);
}

.spec-table tr:nth-child(odd) td {
    background: var(--princess-white);
}

.spec-table tr:last-child td {
    border-bottom: none;
}

.spec-table td:first-child {
    font-weight: 500;
    color: var(--princess-deep);
    white-space: nowrap;
}

/* Color Swatches */
.color-options {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.color-swatch {
    text-align: center;
    transition: transform 0.3s ease;
}

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

.color-swatch .swatch {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 0.5rem;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.color-swatch span {
    font-size: 0.85rem;
    font-weight: 500;
}

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

.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px var(--shadow-pink);
    border: 3px solid white;
    transition: transform 0.3s ease;
    aspect-ratio: 4/3;
    position: relative;
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

/* Delete overlay */
.gallery-item-overlay {
    position: absolute;
    top: 0; right: 0;
    padding: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.btn-delete {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(200, 30, 60, 0.85);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: background 0.2s ease;
}

.btn-delete:hover {
    background: rgba(220, 20, 40, 1);
}

/* Category badge */
.category-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--princess-rose), var(--princess-pink));
    color: white;
    width: 32px;
    height: 32px;
    line-height: 32px;
    border-radius: 50%;
    text-align: center;
    font-size: 0.95rem;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-right: 0.5rem;
    vertical-align: middle;
}

/* Category frame */
.category-frame {
    border-left: 4px solid var(--princess-pink);
}

.category-frame:nth-child(2) {
    border-left-color: var(--princess-lavender);
}

.category-frame:nth-child(3) {
    border-left-color: var(--princess-gold);
}

/* Login form */
.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: var(--princess-deep);
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.input-princess {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid rgba(248, 164, 200, 0.4);
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Malgun Gothic', '맑은 고딕', sans-serif;
    background: var(--princess-blush);
    color: var(--princess-text);
    outline: none;
    transition: border-color 0.3s ease;
}

.input-princess:focus {
    border-color: var(--princess-rose);
}

/* Select dropdown */
.select-princess {
    padding: 0.6rem 1rem;
    border: 2px solid rgba(248, 164, 200, 0.4);
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: 'Malgun Gothic', '맑은 고딕', sans-serif;
    background: var(--princess-blush);
    color: var(--princess-text);
    outline: none;
    cursor: pointer;
    margin-left: 0.5rem;
}

.select-princess:focus {
    border-color: var(--princess-rose);
}

/* Upload Form */
.upload-area {
    background: linear-gradient(135deg, var(--princess-blush), var(--princess-lavender));
    border: 3px dashed var(--princess-pink);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    margin-top: 2rem;
    transition: border-color 0.3s ease;
}

.upload-area:hover {
    border-color: var(--princess-rose);
}

.upload-area h3 {
    font-family: 'Great Vibes', cursive;
    font-size: 1.8rem;
    color: var(--princess-deep);
    margin-bottom: 1rem;
}

.upload-area input[type="file"] {
    margin: 1rem 0;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--princess-rose), var(--princess-pink));
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-family: 'Malgun Gothic', '맑은 고딕', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px var(--shadow-pink);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 30, 140, 0.4);
}

/* Flash Messages */
.flash-messages {
    max-width: 600px;
    margin: 1rem auto;
    text-align: center;
}

.flash-msg {
    background: var(--princess-white);
    border: 2px solid var(--princess-pink);
    border-radius: 12px;
    padding: 0.8rem 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--princess-deep);
    font-weight: 500;
}

/* Rating Stars */
.rating {
    color: var(--princess-gold);
    font-size: 1.3rem;
    letter-spacing: 2px;
    margin: 0.5rem 0;
}

/* Score Badge */
.score-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--princess-gold), #e8c55a);
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 4px 15px rgba(212, 168, 67, 0.4);
    margin: 0.5rem 0;
}

/* Comparison highlight */
.highlight-pink {
    background: var(--princess-blush);
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    font-weight: 500;
    color: var(--princess-rose);
}

/* Empty Gallery */
.empty-gallery {
    text-align: center;
    padding: 3rem;
    color: #b08095;
}

.empty-gallery .icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(248, 164, 200, 0.5);
    border: 4px solid white;
    animation: lightbox-in 0.25s ease;
}

@keyframes lightbox-in {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: #b08095;
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
    margin-top: 2rem;
}

footer .heart {
    color: var(--princess-rose);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .hero .subtitle { font-size: 1.2rem; }
    nav .nav-inner { flex-direction: column; padding: 0.5rem 1rem; }
    nav ul { padding-bottom: 0.5rem; }
    .card { padding: 1.5rem; }
    .feature-grid { grid-template-columns: 1fr; }
}
