/* NeoPixel Studios - Premium White Theme & Modern Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@600;700;800&display=swap');

:root {
    --bg-page: #f8fafc;
    --bg-surface: #ffffff;
    --bg-subtle: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --accent-blue: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-light: #eff6ff;
    --card-bg: #ffffff;
    --card-border: #e2e8f0;
    --card-hover-border: #cbd5e1;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.03);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --status-active-bg: #dcfce7;
    --status-active-text: #15803d;
    --status-active-border: #bbf7d0;
    --warning-bg: #fffbeb;
    --warning-text: #b45309;
    --warning-border: #fde68a;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-page);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
.header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 72px;
    display: flex;
    align-items: center;
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.brand-icon {
    width: 36px !important;
    height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* User Badge */
.user-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-subtle);
    border: 1px solid var(--card-border);
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;

    user-select: none;
}

.user-badge:hover {
    background: var(--card-hover-border);
}

.user-avatar {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    max-width: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
}

/* Auth Buttons */
.btn-auth-nav {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-auth-outline {
    background: transparent;
    border: 1px solid var(--card-border);
    color: var(--text-primary);
}

.btn-auth-outline:hover {
    background: var(--bg-subtle);
}

.btn-auth-filled {
    background: var(--accent-blue);
    border: 1px solid var(--accent-blue);
    color: #ffffff;
}

.btn-auth-filled:hover {
    background: var(--accent-hover);
}

/* Language Switcher Dropdown */
.lang-switcher {
    position: relative;
}

.lang-btn {
    background: var(--bg-surface);
    border: 1px solid var(--card-border);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: var(--bg-surface);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 6px;
    width: 170px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 200;
}

.lang-switcher:hover .lang-dropdown,
.lang-switcher:focus-within .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
}

.lang-item:hover, .lang-item.active {
    background: var(--accent-light);
    color: var(--accent-blue);
    font-weight: 600;
}

/* Sub-Navigation Bar */
.sub-nav {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--card-border);
    padding: 12px 0;
}

.sub-nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.sub-nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sub-nav-item {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.sub-nav-item:hover {
    color: var(--text-primary);
    background: var(--bg-subtle);
}

.sub-nav-item.active {
    color: var(--accent-blue);
    background: var(--accent-light);
    font-weight: 600;
}

.social-links-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
}

.social-btn.tg {
    background: #e0f2fe;
    color: #0369a1;
}

.social-btn.yt {
    background: #fee2e2;
    color: #b91c1c;
}

/* Hero & Section Styling */
.hero {
    text-align: center;
    padding: 48px 0 32px 0;
}

.syama-banner {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.syama-img {
    max-width: 130px !important;
    height: auto !important;
    object-fit: contain;
}

.syama-badge {
    background: var(--bg-surface);
    border: 1px solid var(--card-border);
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-blue);
    box-shadow: var(--shadow-sm);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.section-label {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

/* Main Content & Cards */
.main-content {
    flex: 1;
    padding: 32px 0 64px 0;
}

.projects-grid, .saves-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.project-card, .save-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.project-card:hover, .save-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--card-hover-border);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.card-icon-wrapper {
    width: 56px;
    height: 56px;
    max-width: 56px;
    max-height: 56px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
}

.card-icon {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

.secret-icon-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.active {
    background: var(--status-active-bg);
    color: var(--status-active-text);
    border: 1px solid var(--status-active-border);
}

.status-badge.construction {
    background: var(--warning-bg);
    color: var(--warning-text);
    border: 1px solid var(--warning-border);
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.card-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.card-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--accent-blue);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-disabled {
    background: var(--bg-subtle);
    color: var(--text-muted);
    cursor: not-allowed;
}

/* Save Card Specifics */
.save-card {
    padding: 0;
    overflow: hidden;
}

.save-card-cover {
    width: 100% !important;
    height: 180px !important;
    max-height: 180px !important;
    object-fit: cover !important;
}

.save-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.save-card-title {
    font-size: 1.15rem;
    margin-bottom: 4px;
    word-break: break-word;
}

.save-card-author {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.author-avatar {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    max-width: 20px !important;
    min-height: 20px !important;
    max-height: 20px !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
}

.save-card-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    flex: 1;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.save-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--card-border);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.reactions-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
}

.react-btn {
    background: var(--bg-subtle);
    border: 1px solid var(--card-border);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.react-btn.active {
    background: var(--accent-light);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

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

.gallery-img {
    width: 100% !important;
    height: 120px !important;
    max-height: 120px !important;
    object-fit: cover !important;
    border-radius: var(--radius-sm);
    border: 1px solid var(--card-border);
}

/* Upload Wizard Card */
.wizard-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 680px;
    margin: 0 auto;
    box-shadow: var(--shadow-sm);
}

.wizard-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 24px;
    text-align: center;
}

.wizard-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}

.wizard-progress-step {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-subtle);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.wizard-progress-step.active {
    background: var(--accent-blue);
    color: #ffffff;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: var(--bg-surface);
}

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

.form-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.wizard-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

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

.modal-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 32px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    margin-bottom: 20px;
    text-align: center;
}

/* Footer */
.footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--card-border);
    padding: 24px 0;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Frozen / Unverified Blocking Modal */
.modal-overlay.frozen-modal {
    z-index: 99999 !important;
    background: rgba(11, 15, 25, 0.88) !important;
    backdrop-filter: blur(10px) !important;
    pointer-events: auto !important;
}

.frozen-card {
    max-width: 460px !important;
    text-align: center;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6) !important;
    animation: modalPulseGlow 4s ease-in-out infinite alternate;
}

@keyframes modalPulseGlow {
    0% { box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 15px rgba(59, 130, 246, 0.15); }
    100% { box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7), 0 0 25px rgba(59, 130, 246, 0.35); }
}

.clock-badge-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(59,130,246,0.18) 0%, rgba(37,99,235,0.05) 100%);
    border-radius: 50%;
    border: 2px solid rgba(59, 130, 246, 0.35);
}

.clock-icon-svg {
    color: #3b82f6;
    animation: clockRotateHands 12s linear infinite;
}

@keyframes clockRotateHands {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.clock-timer-tag {
    position: absolute;
    bottom: -6px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.4);
    letter-spacing: 0.5px;
}

.frozen-lang-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--card-border);
}

.frozen-lang-pill {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    background: var(--bg-body, #1e293b);
    border: 1px solid var(--card-border);
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s ease;
}

.frozen-lang-pill:hover, .frozen-lang-pill.active {
    background: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
}

