/*
 * Wunschix.de - Modern Wishlist Design
 * Aesthetic: Warm, inviting, gift-unwrapping joy
 * Color: Coral/Peach primary with mint accents
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=DM+Sans:wght@400;500;600&display=swap');

:root {
    /* Warm, inviting color palette */
    --coral: #FF6B6B;
    --coral-light: #FF8E8E;
    --coral-dark: #E85555;
    --peach: #FFAB91;
    --mint: #4ECDC4;
    --mint-light: #7EDDD6;
    --gold: #FFD93D;
    --cream: #FFF9F5;
    --cream-dark: #FFF0E8;
    
    /* Neutrals */
    --text: #2D3436;
    --text-light: #636E72;
    --text-muted: #B2BEC3;
    --white: #FFFFFF;
    --border: #F0E6E0;
    
    /* Semantic */
    --success: #00B894;
    --warning: #FDCB6E;
    --error: #E74C3C;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Typography */
    --font-display: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    
    /* Effects */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 2px 8px rgba(255, 107, 107, 0.08);
    --shadow-md: 0 4px 20px rgba(255, 107, 107, 0.12);
    --shadow-lg: 0 8px 40px rgba(255, 107, 107, 0.16);
    --shadow-glow: 0 0 40px rgba(255, 107, 107, 0.3);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    line-height: 1.6;
    background: var(--cream);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animated Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 107, 107, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(78, 205, 196, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 217, 61, 0.03) 0%, transparent 40%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

a {
    color: var(--coral);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--coral-dark);
}

/* ===== HEADER ===== */
.header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--coral) 0%, var(--peach) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo::before {
    content: '🎁';
    font-size: 1.5rem;
    -webkit-text-fill-color: initial;
}

.nav-links {
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nav-user-name {
    font-weight: 600;
    color: var(--text);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--coral) 0%, var(--coral-light) 100%);
    color: var(--white);
    box-shadow: var(--shadow-md), 0 4px 15px rgba(255, 107, 107, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 6px 20px rgba(255, 107, 107, 0.5);
    color: var(--white);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--white);
    color: var(--coral);
    border: 2px solid var(--coral);
}

.btn-secondary:hover {
    background: var(--coral);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    padding: 0.75rem 1.25rem;
}

.btn-ghost:hover {
    background: var(--cream-dark);
    color: var(--coral);
}

.btn-mint {
    background: linear-gradient(135deg, var(--mint) 0%, var(--mint-light) 100%);
    color: var(--white);
}

.btn-mint:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4);
    color: var(--white);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 1.125rem 2.5rem;
    font-size: 1.1rem;
}

.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: var(--radius-md);
}

/* ===== HERO SECTION ===== */
.hero {
    padding: var(--space-3xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.08) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

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

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    margin-bottom: var(--space-lg);
}

.hero h1 span {
    background: linear-gradient(135deg, var(--coral) 0%, var(--mint) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.hero-illustration {
    margin-top: var(--space-3xl);
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.floating-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    animation: float 6s ease-in-out infinite;
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.floating-card:nth-child(2) { animation-delay: -2s; }
.floating-card:nth-child(3) { animation-delay: -4s; }

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

.floating-card-icon {
    font-size: 2rem;
}

.floating-card-text {
    font-weight: 600;
    color: var(--text);
}

/* ===== FEATURES SECTION ===== */
.features {
    padding: var(--space-3xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-header h2 {
    margin-bottom: var(--space-md);
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--coral), var(--mint));
    transform: scaleX(0);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--cream-dark) 0%, var(--cream) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: var(--space-lg);
}

.feature-card h3 {
    margin-bottom: var(--space-sm);
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ===== CTA SECTION ===== */
.cta {
    padding: var(--space-3xl) 0;
}

.cta-box {
    background: linear-gradient(135deg, var(--coral) 0%, var(--peach) 50%, var(--mint) 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-3xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: shimmer 10s linear infinite;
}

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

.cta-box h2 {
    color: var(--white);
    margin-bottom: var(--space-md);
    position: relative;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: var(--space-xl);
    position: relative;
}

.cta-box .btn {
    position: relative;
    background: var(--white);
    color: var(--coral);
}

.cta-box .btn:hover {
    background: var(--cream);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===== FOOTER ===== */
.footer {
    padding: var(--space-xl) 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    margin-top: var(--space-3xl);
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer p {
    color: var(--text-light);
}

.footer-nav {
    display: flex;
    gap: var(--space-lg);
}

.footer-nav a {
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer-nav a:hover {
    color: var(--coral);
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text);
}

.form-input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text);
    background: var(--white);
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--coral);
    box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

.form-hint {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: var(--space-xs);
}

/* ===== CARDS ===== */
.card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
}

/* ===== WISHLIST CARDS ===== */
.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-xl);
}

.wishlist-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.wishlist-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.wishlist-card-header {
    padding: var(--space-lg);
    background: linear-gradient(135deg, var(--cream-dark) 0%, var(--cream) 100%);
    border-bottom: 1px solid var(--border);
}

.wishlist-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.wishlist-card-title::before {
    content: '📋';
}

.wishlist-card-meta {
    font-size: 0.85rem;
    color: var(--text-light);
}

.wishlist-card-body {
    padding: var(--space-lg);
}

.wishlist-card-desc {
    color: var(--text-light);
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

.wishlist-card-stats {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.wishlist-stat {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9rem;
    color: var(--text-light);
}

.wishlist-stat-value {
    font-weight: 700;
    color: var(--text);
}

.wishlist-card-actions {
    display: flex;
    gap: var(--space-sm);
}

/* ===== WISH ITEMS ===== */
.wish-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.wish-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    display: flex;
    gap: var(--space-lg);
    align-items: flex-start;
    transition: var(--transition);
}

.wish-item:hover {
    box-shadow: var(--shadow-md);
}

.wish-item.fulfilled {
    background: linear-gradient(135deg, rgba(0, 184, 148, 0.05) 0%, rgba(0, 184, 148, 0.02) 100%);
    border-color: var(--success);
}

.wish-checkbox {
    flex-shrink: 0;
}

.wish-checkbox input {
    width: 24px;
    height: 24px;
    accent-color: var(--success);
    cursor: pointer;
}

.wish-content {
    flex: 1;
    min-width: 0;
}

.wish-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: var(--space-xs);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.wish-item.fulfilled .wish-title {
    text-decoration: line-through;
    color: var(--text-light);
}

.wish-description {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: var(--space-sm);
}

.wish-meta {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
    font-size: 0.85rem;
}

.wish-price {
    font-weight: 700;
    color: var(--coral);
    background: rgba(255, 107, 107, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
}

.wish-link a {
    color: var(--mint);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.wish-priority {
    display: flex;
    gap: 2px;
}

.wish-priority-star {
    color: var(--gold);
}

.wish-actions {
    display: flex;
    gap: var(--space-sm);
    flex-shrink: 0;
}

/* ===== AUTH PAGES ===== */
.auth-page {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
}

.auth-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 440px;
    border: 1px solid var(--border);
}

.auth-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.auth-header h1 {
    font-size: 1.75rem;
    margin-bottom: var(--space-sm);
}

.auth-header p {
    color: var(--text-light);
}

.auth-form .btn {
    width: 100%;
    margin-top: var(--space-md);
}

.auth-footer {
    text-align: center;
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border);
    color: var(--text-light);
}

.auth-footer a {
    font-weight: 600;
}

/* ===== DASHBOARD ===== */
.dashboard-header {
    padding: var(--space-xl) 0;
    margin-bottom: var(--space-xl);
}

.dashboard-header h1 {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
}

.dashboard-header p {
    color: var(--text-light);
}

.dashboard-actions {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: var(--space-3xl);
    color: var(--text-light);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: var(--space-lg);
    opacity: 0.5;
}

.empty-state h3 {
    color: var(--text);
    margin-bottom: var(--space-sm);
}

.empty-state p {
    margin-bottom: var(--space-lg);
}

/* ===== ALERTS ===== */
.alert {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.alert-success {
    background: rgba(0, 184, 148, 0.1);
    color: var(--success);
    border: 1px solid rgba(0, 184, 148, 0.2);
}

.alert-error {
    background: rgba(231, 76, 60, 0.1);
    color: var(--error);
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.alert-warning {
    background: rgba(253, 203, 110, 0.2);
    color: #B7791F;
    border: 1px solid rgba(253, 203, 110, 0.3);
}

/* ===== SHARE PAGE ===== */
.share-header {
    text-align: center;
    padding: var(--space-3xl) 0 var(--space-xl);
}

.share-header h1 {
    margin-bottom: var(--space-sm);
}

.share-header .owner {
    color: var(--text-light);
    font-size: 1.1rem;
}

.share-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    display: flex;
    gap: var(--space-md);
    align-items: center;
    margin-top: var(--space-lg);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.share-box input {
    flex: 1;
    background: var(--cream);
    border: none;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    color: var(--text);
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: var(--transition);
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--coral);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav {
        height: 70px;
    }
    
    .nav-links {
        gap: var(--space-sm);
    }
    
    .btn {
        padding: 0.75rem 1.25rem;
    }
    
    .hero {
        padding: var(--space-2xl) 0;
    }
    
    .hero-illustration {
        flex-direction: column;
        align-items: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .wishlist-grid {
        grid-template-columns: 1fr;
    }
    
    .wish-item {
        flex-direction: column;
    }
    
    .wish-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .footer .container {
        flex-direction: column;
        text-align: center;
    }
}

/* ===== ERROR PAGE ===== */
.error-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-xl);
}

.error-page h1 {
    font-size: 8rem;
    background: linear-gradient(135deg, var(--coral) 0%, var(--mint) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.error-page p {
    color: var(--text-light);
    font-size: 1.25rem;
    margin: var(--space-lg) 0 var(--space-xl);
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-muted { color: var(--text-light); }
.text-coral { color: var(--coral); }
.text-mint { color: var(--mint); }
.text-success { color: var(--success); }
.text-error { color: var(--error); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.hidden { display: none !important; }
.flex { display: flex; }
.flex-between { justify-content: space-between; }
.flex-center { justify-content: center; align-items: center; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }

/* ===== IMAGE UPLOAD ===== */
.image-upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--cream);
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-upload-area:hover,
.image-upload-area.dragover {
    border-color: var(--coral);
    background: var(--cream-dark);
}

.image-upload-placeholder {
    color: var(--text-light);
}

.image-upload-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    opacity: 0.6;
}

.image-upload-placeholder p {
    font-weight: 500;
    margin-bottom: var(--space-xs);
}

.image-upload-preview {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-upload-preview img {
    max-width: 100%;
    max-height: 300px;
    border-radius: var(--radius-md);
    object-fit: contain;
}

.image-remove-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--error);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.image-remove-btn:hover {
    background: #c0392b;
    transform: scale(1.1);
}

/* ===== URL PREVIEW ===== */
.url-preview {
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.url-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
    font-weight: 600;
}

.url-preview-content {
    display: flex;
    gap: var(--space-lg);
    align-items: flex-start;
}

.url-preview-image {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.url-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.url-preview-image .no-image {
    font-size: 2rem;
    opacity: 0.3;
}

.url-preview-details {
    flex: 1;
    min-width: 0;
}

.url-preview-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: var(--space-xs);
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.url-preview-description {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: var(--space-sm);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.url-preview-price {
    font-weight: 700;
    color: var(--coral);
    font-size: 1.1rem;
}

/* ===== WISH THUMBNAIL ===== */
.wish-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    background: var(--cream);
}

.wish-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.wish-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== LIGHTBOX ===== */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: calc(90vh - 60px);
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--coral);
    transform: scale(1.1);
}

.lightbox-caption {
    color: white;
    margin-top: var(--space-md);
    font-size: 1.1rem;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== URL INPUT WRAPPER ===== */
.url-input-wrapper {
    display: flex;
    flex-direction: column;
}

@media (min-width: 480px) {
    .url-input-wrapper {
        flex-direction: row;
        gap: var(--space-sm);
        align-items: flex-start;
    }

    .url-input-wrapper .form-input {
        flex: 1;
    }

    .url-input-wrapper .btn {
        margin-top: 0;
        white-space: nowrap;
    }
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    .url-preview-content {
        flex-direction: column;
    }

    .url-preview-image {
        width: 100%;
        height: 150px;
    }

    .wish-thumbnail {
        width: 60px;
        height: 60px;
    }

    .lightbox-close {
        top: -50px;
        right: -10px;
    }
}
