/* ==================== IMPORTS ==================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ==================== CSS RESET ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==================== DESIGN TOKENS ==================== */
:root {
    /* Colors - Soft Neutral with Subtle Warmth */
    --bg-base: #FAFAFA;
    --bg-secondary: #F5F5F5;
    --surface: rgba(255, 255, 255, 0.8);
    --surface-hover: rgba(255, 255, 255, 0.95);

    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.05);
    --glass-border-strong: rgba(0, 0, 0, 0.08);

    /* Text Colors */
    --text-primary: #1A202C;
    --text-secondary: #4A5568;
    --text-muted: #718096;
    --text-light: #A0AEC0;

    /* Elegant Accents */
    --accent-primary: #667EEA;
    --accent-secondary: #764BA2;
    --accent-success: #48BB78;
    --accent-warning: #ED8936;
    --accent-info: #4299E1;

    /* Subtle Gradients */
    --gradient-primary: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    --gradient-success: linear-gradient(135deg, #48BB78 0%, #38B2AC 100%);
    --gradient-info: linear-gradient(135deg, #4299E1 0%, #667EEA 100%);
    --gradient-warm: linear-gradient(135deg, #F6AD55 0%, #ED8936 100%);
    --gradient-bg: linear-gradient(135deg, #FAFAFA 0%, #F0F0F0 100%);

    /* Soft Shadows */
    --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-display: 'Outfit', 'Inter', sans-serif;

    /* Font Sizes */
    --text-xs: 0.75rem;
    /* 12px */
    --text-sm: 0.875rem;
    /* 14px */
    --text-base: 1rem;
    /* 16px */
    --text-lg: 1.125rem;
    /* 18px */
    --text-xl: 1.25rem;
    /* 20px */
    --text-2xl: 1.5rem;
    /* 24px */
    --text-3xl: 1.875rem;
    /* 30px */
    --text-4xl: 2.25rem;
    /* 36px */
    --text-5xl: 3rem;
    /* 48px */

    /* Line Heights */
    --leading-tight: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.75;

    /* Spacing - 8px Grid */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* Z-Index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-modal: 1050;
    --z-tooltip: 1070;
}

/* Dark Mode Support */
[data-theme="dark"] {
    --bg-base: #0F1419;
    --bg-secondary: #1A1F2E;
    --surface: rgba(26, 31, 46, 0.8);
    --surface-hover: rgba(26, 31, 46, 0.95);

    --glass-bg: rgba(26, 31, 46, 0.7);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-border-strong: rgba(255, 255, 255, 0.1);

    --gradient-bg: linear-gradient(135deg, #0F1419 0%, #1A1F2E 100%);

    --text-primary: #F8F9FA;
    --text-secondary: #CED4DA;
    --text-muted: #ADB5BD;
    --text-light: #868E96;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.5);
}

/* ==================== BASE STYLES ==================== */
html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

/* Cute Floating Elements Background */
body::before {
    content: '🌸 ✨ 💖 🌟 🦄 🌈 ⭐ 💝';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-size: 2rem;
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 5rem;
    padding: 2rem;
    animation: float-emojis 20s infinite linear;
}

@keyframes float-emojis {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }

    100% {
        transform: translateY(0) rotate(360deg);
    }
}

body {
    font-family: var(--font-primary);
    background: var(--gradient-bg);
    color: var(--text-primary);
    line-height: var(--leading-normal);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

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

h1 {
    font-size: var(--text-5xl);
}

h2 {
    font-size: var(--text-4xl);
}

h3 {
    font-size: var(--text-3xl);
}

h4 {
    font-size: var(--text-2xl);
}

h5 {
    font-size: var(--text-xl);
}

h6 {
    font-size: var(--text-lg);
}

/* Links */
a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-violet);
}

/* Buttons */
button {
    font-family: var(--font-primary);
    cursor: pointer;
    border: none;
    outline: none;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==================== UTILITIES ==================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
}

.shadow-sm {
    box-shadow: var(--shadow-sm);
}

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

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

.shadow-xl {
    box-shadow: var(--shadow-xl);
}

/* ==================== HEADER ==================== */
.header {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border-strong);
    padding: var(--space-4) 0;
    transition: all var(--transition-base);
}

.header-container {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: var(--space-6);
}

/* Logo */
.logo {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    transition: transform var(--transition-fast);
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    font-size: var(--text-3xl);
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    object-fit: contain;
}

/* Search Bar */
.search-container {
    position: relative;
    width: 100%;
    max-width: 600px;
}

.search-bar {
    width: 100%;
    padding: var(--space-3) var(--space-6);
    padding-left: var(--space-12);
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 2px solid var(--glass-border-strong);
    border-radius: var(--radius-full);
    font-size: var(--text-base);
    font-family: var(--font-primary);
    color: var(--text-primary);
    transition: all var(--transition-base);
}

.search-bar::placeholder {
    color: var(--text-muted);
}

.search-bar:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 4px rgba(66, 99, 235, 0.1);
}

.search-icon {
    position: absolute;
    left: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: var(--text-lg);
    pointer-events: none;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

/* Upload Button - Cute & Bouncy */
.btn-upload {
    background: var(--gradient-primary);
    color: white;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: var(--text-sm);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    box-shadow: 0 4px 20px rgba(255, 107, 157, 0.4);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn-upload::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(20%, 20%);
    }
}

.btn-upload:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(255, 107, 157, 0.5);
    animation: bounce 0.5s ease;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(-3px) scale(1.05);
    }

    50% {
        transform: translateY(-5px) scale(1.08);
    }
}

/* Language Switcher */
.language-toggle {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border-strong);
    border-radius: var(--radius-md);
    padding: var(--space-2) var(--space-3);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.language-toggle:hover {
    background: var(--surface-hover);
    color: var(--accent-blue);
}

/* ==================== NAVIGATION FILTERS ==================== */
.nav-filters {
    padding: var(--space-6) 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.nav-filters::-webkit-scrollbar {
    display: none;
}

.filter-list {
    display: flex;
    gap: var(--space-3);
    list-style: none;
}

.filter-btn {
    padding: var(--space-2) var(--space-5);
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid transparent;
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: 600;
    white-space: nowrap;
    transition: all var(--transition-base);
    position: relative;
}

.filter-btn:hover {
    background: var(--gradient-cute);
    color: white;
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-md);
}

.filter-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 16px rgba(255, 107, 157, 0.35);
    animation: wiggle 0.5s ease;
}

@keyframes wiggle {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-3deg);
    }

    75% {
        transform: rotate(3deg);
    }
}

/* ==================== WALLPAPER GRID ==================== */
.wallpaper-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-6);
    padding: var(--space-6) 0;
}

/* Wallpaper Card - Cute & Colorful */
.wallpaper-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-slow);
    cursor: pointer;
    position: relative;
}

.wallpaper-card::after {
    content: '✨';
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    font-size: var(--text-2xl);
    opacity: 0;
    transform: scale(0) rotate(-45deg);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wallpaper-card:hover {
    transform: translateY(-10px) rotate(-1deg);
    box-shadow: var(--shadow-xl), 0 0 40px rgba(255, 107, 157, 0.2);
    background: var(--surface-hover);
    border-color: var(--accent-pink);
}

.wallpaper-card:hover::after {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* Card Image */
.card-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: all var(--transition-slow);
    filter: saturate(1);
}

.wallpaper-card:hover .card-image {
    transform: scale(1.08);
    filter: saturate(1.2) brightness(1.05);
}

/* Card Overlay */
.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    padding: var(--space-5);
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition-base);
}

.wallpaper-card:hover .card-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Resolution Badge - Cute & Colorful */
.badge-resolution {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    background: var(--gradient-peach);
    color: white;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 4px 12px rgba(255, 184, 77, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.wallpaper-card:nth-child(2n) .badge-resolution {
    background: var(--gradient-mint);
    box-shadow: 0 4px 12px rgba(0, 229, 200, 0.4);
}

.wallpaper-card:nth-child(3n) .badge-resolution {
    background: var(--gradient-cute);
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.4);
}

/* Card Title */
.card-title {
    color: white;
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-2);
}

/* Card Actions */
.card-actions {
    display: flex;
    gap: var(--space-2);
}

.btn-card {
    flex: 1;
    padding: var(--space-2) var(--space-4);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    color: white;
    font-size: var(--text-sm);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.btn-card:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* ==================== LOADING STATE ==================== */
.skeleton {
    background: linear-gradient(90deg,
            rgba(220, 220, 220, 0.3) 0%,
            rgba(240, 240, 240, 0.5) 50%,
            rgba(220, 220, 220, 0.3) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-xl);
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .header-container {
        grid-template-columns: auto 1fr auto;
    }

    .language-toggle {
        display: none;
    }

    .wallpaper-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

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

    .logo span {
        display: none;
    }

    .search-container {
        grid-column: 1 / -1;
        margin-top: var(--space-3);
    }

    .wallpaper-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
}



/* ==================== MODALS ==================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-modal);
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: scaleIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    padding: var(--space-6);
    border-bottom: 1px solid var(--glass-border-strong);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h2 {
    font-size: var(--text-2xl);
    font-weight: 700;
}

.modal-close {
    background: transparent;
    color: var(--text-muted);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--surface);
    color: var(--text-primary);
}

.modal-body {
    padding: var(--space-6);
}

/* ==================== UPLOAD FORM ==================== */
.upload-area {
    border: 2px dashed var(--glass-border-strong);
    border-radius: var(--radius-xl);
    padding: var(--space-12);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-base);
    margin-bottom: var(--space-6);
}

.upload-area:hover {
    border-color: var(--accent-blue);
    background: var(--surface);
}

.upload-area.drag-over {
    border-color: var(--accent-blue);
    background: rgba(66, 99, 235, 0.05);
}

.upload-icon {
    font-size: var(--text-5xl);
    color: var(--accent-blue);
    margin-bottom: var(--space-4);
}

.upload-text {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.upload-subtext {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.image-preview {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: var(--space-6);
}

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

.btn-remove-image {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.btn-remove-image:hover {
    background: rgba(255, 0, 0, 0.8);
    transform: scale(1.1);
}

/* Form Groups */
.form-group {
    margin-bottom: var(--space-5);
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border-strong);
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: var(--text-base);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(66, 99, 235, 0.1);
}

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

/* Upload Progress */
.upload-progress {
    margin: var(--space-6) 0;
}

.progress-bar {
    height: 8px;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--space-3);
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    text-align: center;
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: var(--space-4);
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: var(--text-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    box-shadow: 0 4px 16px rgba(66, 99, 235, 0.3);
    transition: all var(--transition-base);
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(66, 99, 235, 0.4);
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==================== IMAGE VIEWER ==================== */
.viewer-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.viewer-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent);
    padding: var(--space-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.viewer-header h3 {
    color: white;
    font-size: var(--text-xl);
}

.viewer-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.viewer-body img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.viewer-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 10;
}

.viewer-nav:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.1);
}

.viewer-prev {
    left: var(--space-6);
}

.viewer-next {
    right: var(--space-6);
}

.viewer-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: var(--space-6);
    display: flex;
    gap: var(--space-3);
    justify-content: center;
}

.btn-download-viewer,
.btn-share {
    padding: var(--space-3) var(--space-6);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    color: white;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    transition: all var(--transition-fast);
}

.btn-download-viewer:hover,
.btn-share:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* ==================== NOTIFICATION ==================== */
.notification {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: var(--space-4) var(--space-5);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    box-shadow: var(--shadow-lg);
    transform: translateX(400px);
    transition: transform var(--transition-base);
    z-index: var(--z-tooltip);
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-left: 4px solid var(--accent-success);
}

.notification.error {
    border-left: 4px solid var(--accent-warning);
}

.notification-icon {
    font-size: var(--text-xl);
}

.notification.success .notification-icon {
    color: var(--accent-success);
}

.notification.error .notification-icon {
    color: var(--accent-warning);
}

#notificationText {
    font-weight: 500;
    color: var(--text-primary);
}

/* ==================== EMPTY STATE ==================== */
.empty-state {
    text-align: center;
    padding: var(--space-20) var(--space-6);
}

.empty-icon {
    font-size: var(--text-5xl);
    color: var(--text-muted);
    margin-bottom: var(--space-4);
}

.empty-title {
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-3);
}

.empty-description {
    font-size: var(--text-base);
    color: var(--text-muted);
    max-width: 400px;
    margin: 0 auto;
}

/* ==================== ACCESSIBILITY ==================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles */
*:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}