/* ============================================
   Rebeauty Freepick - Modern Design System
   Inspired by utoimage.com + shadcn/ui
   ============================================ */

:root {
    --background: 0 0% 100%;
    --foreground: 222 47% 11%;
    --card: 0 0% 100%;
    --card-foreground: 222 47% 11%;
    --primary: 346.8 77.2% 49.8%;
    --primary-foreground: 355.7 100% 97.3%;
    --secondary: 220 14% 96%;
    --secondary-foreground: 220 9% 30%;
    --muted: 220 14% 96%;
    --muted-foreground: 220 9% 46%;
    --accent: 220 14% 96%;
    --accent-foreground: 222 47% 11%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 0 0% 98%;
    --border: 220 13% 91%;
    --input: 220 13% 91%;
    --ring: 346.8 77.2% 49.8%;
    --radius: 0.625rem;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

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

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ---- Layout ---- */
.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 1.5rem; }
.main-content { min-height: calc(100vh - 160px); }

/* ============================================
   TOP ANNOUNCEMENT BAR
   ============================================ */
.announcement-bar {
    background: hsl(var(--primary));
    color: white;
    text-align: center;
    padding: 0.5rem 0;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.announcement-bar a {
    color: white;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 600;
}

/* ============================================
   HEADER (utoimage-style two-row)
   ============================================ */
.site-header {
    background: white;
    border-bottom: 1px solid hsl(var(--border));
    position: sticky;
    top: 0;
    z-index: 50;
}

/* Row 1: Logo + Search + Actions */
.header-top {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.75rem 0;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.site-logo-icon {
    width: 36px;
    height: 36px;
    background: hsl(var(--primary));
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.site-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.site-logo-text .brand-name {
    font-size: 1.125rem;
    font-weight: 800;
    color: hsl(var(--foreground));
    letter-spacing: -0.03em;
}

.site-logo-text .brand-sub {
    font-size: 0.625rem;
    font-weight: 500;
    color: hsl(var(--primary));
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Search bar (utoimage-style center) */
.header-search {
    flex: 1;
    max-width: 600px;
    position: relative;
}

.header-search-inner {
    display: flex;
    border: 2px solid hsl(var(--primary));
    border-radius: 9999px;
    overflow: hidden;
    background: white;
    transition: box-shadow 0.15s ease;
}

.header-search-inner:focus-within {
    box-shadow: 0 0 0 3px hsl(var(--primary) / 0.15);
}

.header-search select {
    border: none;
    background: hsl(var(--muted));
    padding: 0.625rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: hsl(var(--foreground));
    border-right: 1px solid hsl(var(--border));
    outline: none;
    cursor: pointer;
    min-width: 80px;
}

.header-search input {
    flex: 1;
    border: none;
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
    outline: none;
    background: transparent;
    color: hsl(var(--foreground));
}

.header-search input::placeholder {
    color: hsl(var(--muted-foreground));
}

.header-search button {
    background: hsl(var(--primary));
    color: white;
    border: none;
    padding: 0 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.15s ease;
}

.header-search button:hover {
    background: hsl(346.8 77.2% 42%);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Row 2: Main Navigation */
.header-nav {
    border-top: 1px solid hsl(var(--border));
}

.header-nav-inner {
    display: flex;
    align-items: center;
    gap: 0;
}

.header-nav a {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.75rem 1.125rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: hsl(var(--muted-foreground));
    transition: all 0.12s ease;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.header-nav a:hover {
    color: hsl(var(--foreground));
}

.header-nav a.active {
    color: hsl(var(--primary));
    border-bottom-color: hsl(var(--primary));
}

.header-nav a svg {
    width: 18px;
    height: 18px;
}

.header-nav-badge {
    font-size: 0.625rem;
    font-weight: 700;
    background: hsl(var(--primary));
    color: white;
    padding: 0.0625rem 0.375rem;
    border-radius: 9999px;
    margin-left: 0.125rem;
}

/* Mobile */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: hsl(var(--foreground));
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .header-top { flex-wrap: wrap; }
    .header-search { order: 3; max-width: 100%; flex-basis: 100%; margin-top: 0.5rem; }
    .header-nav-inner { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .header-nav a { font-size: 0.8125rem; padding: 0.625rem 0.75rem; }
    .header-actions .btn span { display: none; }
}

/* ============================================
   BUTTONS (shadcn)
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    text-decoration: none;
    line-height: 1.25;
}

.btn:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 2px; }

.btn-primary { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.btn-primary:hover { background: hsl(346.8 77.2% 42%); }

.btn-secondary { background: hsl(var(--secondary)); color: hsl(var(--secondary-foreground)); }
.btn-secondary:hover { background: hsl(220 14% 90%); }

.btn-outline { border: 1px solid hsl(var(--input)); background: white; color: hsl(var(--foreground)); }
.btn-outline:hover { background: hsl(var(--accent)); color: hsl(var(--accent-foreground)); }

.btn-ghost { background: transparent; color: hsl(var(--foreground)); }
.btn-ghost:hover { background: hsl(var(--accent)); }

.btn-destructive { background: hsl(var(--destructive)); color: hsl(var(--destructive-foreground)); }
.btn-destructive:hover { background: hsl(0 84.2% 50%); }

.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.8125rem; }
.btn-lg { padding: 0.625rem 1.5rem; font-size: 1rem; }
.btn-icon { padding: 0.5rem; width: 2.25rem; height: 2.25rem; }
.w-full { width: 100%; }

/* ============================================
   HERO BANNER (utoimage-style big visual)
   ============================================ */
.hero-banner {
    background: linear-gradient(135deg, hsl(346.8 77.2% 49.8%) 0%, hsl(330 65% 35%) 50%, hsl(280 60% 30%) 100%);
    color: white;
    padding: 3.5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

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

.hero-banner h1 {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 0.5rem;
    line-height: 1.25;
}

.hero-banner h1 em {
    font-style: normal;
    color: hsl(45 100% 70%);
}

.hero-banner p {
    font-size: 1.0625rem;
    opacity: 0.9;
    max-width: 560px;
    margin: 0 auto 1.75rem;
    line-height: 1.5;
}

/* Suggested tags under hero */
.hero-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.hero-tags a {
    padding: 0.3rem 0.875rem;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 9999px;
    font-size: 0.8125rem;
    color: white;
    backdrop-filter: blur(4px);
    transition: all 0.15s ease;
}

.hero-tags a:hover {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.3);
}

@media (max-width: 768px) {
    .hero-banner { padding: 2rem 0; }
    .hero-banner h1 { font-size: 1.5rem; }
    .hero-banner p { font-size: 0.9375rem; }
}

/* ============================================
   SECTION
   ============================================ */
.section { padding: 2.5rem 0; }
.section + .section { padding-top: 0; }

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.section-title {
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title small {
    font-size: 0.8125rem;
    font-weight: 400;
    color: hsl(var(--muted-foreground));
}

.section-title .icon {
    width: 24px;
    height: 24px;
    color: hsl(var(--primary));
}

/* ============================================
   CARD (refined)
   ============================================ */
.card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.2s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
    border-color: hsl(220 13% 85%);
    transform: translateY(-2px);
}

.card-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: hsl(var(--muted));
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.card:hover .card-image img { transform: scale(1.06); }

.card-image .card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0.875rem;
}

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

.card-badge {
    position: absolute;
    top: 0.625rem;
    left: 0.625rem;
    padding: 0.1875rem 0.5rem;
    background: hsl(var(--primary));
    color: white;
    font-size: 0.6875rem;
    font-weight: 700;
    border-radius: 0.375rem;
    letter-spacing: 0.04em;
}

.card-badge-type {
    position: absolute;
    top: 0.625rem;
    right: 0.625rem;
    padding: 0.1875rem 0.5rem;
    background: rgba(0,0,0,0.55);
    color: white;
    font-size: 0.625rem;
    font-weight: 600;
    border-radius: 0.375rem;
    backdrop-filter: blur(4px);
}

.card-content { padding: 0.875rem; }

.card-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.card-meta {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.1875rem;
}

.card-banner .card-image { aspect-ratio: 16/9; }

/* ============================================
   GRID
   ============================================ */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 1024px) { .grid-4, .grid-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; } }

/* ============================================
   CATEGORY PILLS (utoimage tab style)
   ============================================ */
.category-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid hsl(var(--border));
    margin-bottom: 1.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.category-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.75rem 1.125rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.12s ease;
    white-space: nowrap;
}

.category-tab:hover { color: hsl(var(--foreground)); }

.category-tab.active {
    color: hsl(var(--primary));
    border-bottom-color: hsl(var(--primary));
    font-weight: 600;
}

.category-tab .count {
    background: hsl(var(--muted));
    padding: 0.0625rem 0.375rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 600;
}

.category-tab.active .count {
    background: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
}

/* Pill style fallback */
.category-pills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid hsl(var(--border));
}

.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border: 1px solid hsl(var(--border));
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    transition: all 0.15s ease;
    background: white;
}

.category-pill:hover, .category-pill.active {
    background: hsl(var(--primary));
    color: white;
    border-color: hsl(var(--primary));
}

.category-pill .count {
    background: hsl(var(--muted));
    padding: 0.0625rem 0.375rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
}

.category-pill.active .count {
    background: rgba(255,255,255,0.2);
    color: white;
}

/* ============================================
   QUICK CATEGORY ICONS (utoimage-style)
   ============================================ */
.quick-categories {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    padding: 2rem 0;
    background: hsl(var(--muted) / 0.5);
}

.quick-cat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius);
    transition: all 0.15s ease;
    min-width: 90px;
}

.quick-cat:hover { background: white; box-shadow: var(--shadow-sm); }

.quick-cat-icon {
    width: 48px;
    height: 48px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid hsl(var(--border));
    color: hsl(var(--primary));
    box-shadow: var(--shadow-sm);
}

.quick-cat-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    text-align: center;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    margin-top: 2rem;
}

.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.5rem;
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) - 2px);
    font-size: 0.875rem;
    transition: all 0.15s ease;
}

.pagination a:hover { background: hsl(var(--accent)); }
.pagination .active { background: hsl(var(--primary)); color: white; border-color: hsl(var(--primary)); }
.pagination .disabled { opacity: 0.5; pointer-events: none; }

/* ============================================
   FORM / INPUT (shadcn)
   ============================================ */
.form-group { margin-bottom: 1rem; }

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.375rem;
    color: hsl(var(--foreground));
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid hsl(var(--input));
    border-radius: calc(var(--radius) - 2px);
    font-size: 0.875rem;
    background: white;
    color: hsl(var(--foreground));
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    line-height: 1.5;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 3px hsl(var(--ring) / 0.1);
}

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

.form-hint {
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
    margin-top: 0.25rem;
}

/* ============================================
   BADGE
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid transparent;
}

.badge-primary { background: hsl(var(--primary) / 0.1); color: hsl(var(--primary)); border-color: hsl(var(--primary) / 0.2); }
.badge-secondary { background: hsl(var(--secondary)); color: hsl(var(--secondary-foreground)); }
.badge-success { background: hsl(142 76% 36% / 0.1); color: hsl(142 76% 30%); border-color: hsl(142 76% 36% / 0.2); }
.badge-warning { background: hsl(38 92% 50% / 0.1); color: hsl(38 92% 40%); }

/* ============================================
   DETAIL PAGE
   ============================================ */
.detail-hero {
    background: hsl(var(--muted));
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 2rem;
}

.detail-hero img {
    width: 100%;
    max-height: 600px;
    object-fit: contain;
    background: hsl(220 14% 96%);
}

.detail-info {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

@media (max-width: 768px) { .detail-info { grid-template-columns: 1fr; } }

.detail-sidebar { position: sticky; top: 120px; }
.detail-sidebar .card { padding: 1.5rem; }

.detail-meta-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }

.detail-meta-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid hsl(var(--border));
}

.detail-meta-list li:last-child { border-bottom: none; padding-bottom: 0; }
.detail-meta-list .label { color: hsl(var(--muted-foreground)); }

.detail-tags { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-top: 1rem; }

.detail-tags a {
    padding: 0.25rem 0.625rem;
    background: hsl(var(--secondary));
    border-radius: var(--radius);
    font-size: 0.8125rem;
    color: hsl(var(--secondary-foreground));
    transition: background 0.15s ease;
}

.detail-tags a:hover { background: hsl(var(--primary) / 0.1); color: hsl(var(--primary)); }

/* ============================================
   AUTH
   ============================================ */
.auth-container { max-width: 420px; margin: 3rem auto; }
.auth-card { padding: 2rem; }
.auth-card h2 { font-size: 1.5rem; font-weight: 700; text-align: center; margin-bottom: 0.5rem; }
.auth-card .subtitle { text-align: center; color: hsl(var(--muted-foreground)); font-size: 0.875rem; margin-bottom: 1.5rem; }
.auth-footer { text-align: center; margin-top: 1.5rem; font-size: 0.875rem; color: hsl(var(--muted-foreground)); }
.auth-footer a { color: hsl(var(--primary)); font-weight: 500; }

/* ============================================
   ALERT
   ============================================ */
.alert { padding: 0.75rem 1rem; border-radius: var(--radius); font-size: 0.875rem; margin-bottom: 1rem; border: 1px solid; }
.alert-error { background: hsl(0 84% 60% / 0.1); color: hsl(0 84% 40%); border-color: hsl(0 84% 60% / 0.2); }
.alert-success { background: hsl(142 76% 36% / 0.1); color: hsl(142 76% 30%); border-color: hsl(142 76% 36% / 0.2); }
.alert-info { background: hsl(221 83% 53% / 0.1); color: hsl(221 83% 40%); border-color: hsl(221 83% 53% / 0.2); }

/* ============================================
   TABLE (admin shared)
   ============================================ */
.table-wrapper { border: 1px solid hsl(var(--border)); border-radius: var(--radius); overflow: hidden; background: white; }
.table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.table th { text-align: left; padding: 0.75rem 1rem; font-weight: 500; color: hsl(var(--muted-foreground)); background: hsl(var(--muted) / 0.5); border-bottom: 1px solid hsl(var(--border)); font-size: 0.8125rem; }
.table td { padding: 0.75rem 1rem; border-bottom: 1px solid hsl(var(--border)); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: hsl(var(--muted) / 0.3); }
.table .thumb { width: 48px; height: 48px; border-radius: calc(var(--radius) - 4px); object-fit: cover; }

/* ============================================
   FOOTER (utoimage-style)
   ============================================ */
.footer {
    background: hsl(222 47% 11%);
    color: hsl(220 14% 75%);
    padding: 3rem 0 2rem;
    margin-top: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.footer-brand svg { width: 28px; height: 28px; }

.footer-desc { font-size: 0.8125rem; line-height: 1.7; max-width: 320px; }

.footer-heading {
    font-size: 0.8125rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { font-size: 0.8125rem; color: hsl(220 14% 65%); transition: color 0.15s ease; }
.footer-links a:hover { color: white; }

.footer-bottom {
    border-top: 1px solid hsl(222 47% 18%);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: hsl(220 14% 45%);
}

@media (max-width: 768px) { .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; } }

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state { text-align: center; padding: 4rem 2rem; color: hsl(var(--muted-foreground)); }
.empty-state svg { width: 64px; height: 64px; margin: 0 auto 1rem; opacity: 0.3; }
.empty-state h3 { font-size: 1.125rem; font-weight: 600; color: hsl(var(--foreground)); margin-bottom: 0.5rem; }
.empty-state p { font-size: 0.875rem; max-width: 400px; margin: 0 auto; }

/* ============================================
   FILTER BAR
   ============================================ */
.filter-bar { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.filter-bar .form-select { width: auto; min-width: 140px; }

/* ============================================
   STATS (admin)
   ============================================ */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2rem; }
@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-card { padding: 1.25rem; }
.stat-card .stat-label { font-size: 0.8125rem; color: hsl(var(--muted-foreground)); margin-bottom: 0.25rem; }
.stat-card .stat-value { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.025em; }

/* ============================================
   UTILITY
   ============================================ */
.text-center { text-align: center; }
.text-muted { color: hsl(var(--muted-foreground)); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 0.3s ease forwards; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: hsl(var(--muted)); }
::-webkit-scrollbar-thumb { background: hsl(var(--border)); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: hsl(var(--muted-foreground)); }

/* Quick Preview Modal */
.quick-preview-modal{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center}
.quick-preview-backdrop{position:absolute;inset:0;background:rgba(0,0,0,0.7);backdrop-filter:blur(4px)}
.quick-preview-content{position:relative;max-width:80vw;max-height:85vh;background:white;border-radius:0.75rem;overflow:hidden;box-shadow:0 25px 50px rgba(0,0,0,0.3)}
.quick-preview-content img{max-width:80vw;max-height:70vh;object-fit:contain}
.quick-preview-actions{display:flex;gap:0.5rem;justify-content:center;padding:1rem}
