/* ============================================
   Fusion Hosting - 完整深浅色主题样式
   ============================================ */

:root {
    --font-sans: Helvetica, 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
    --font-mono: Consolas, 'SF Mono', Monaco, 'Cascadia Code', monospace;

    --radius-sm: 5px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.08);

    --transition: 0.2s ease;
}

/* Light Theme (default) */
[data-theme="light"] {
    --bg-body: #ffffff;
    --bg-surface: #ffffff;
    --bg-surface-2: #f5f6f8;
    --bg-surface-3: #eef0f4;
    --bg-hover: #f5f6f8;
    --bg-active: #eef0f4;

    --text-primary: #1a1a1a;
    --text-secondary: #5a5a6e;
    --text-muted: #8a8a9a;
    --text-inverse: #ffffff;

    --border-color: #e2e4e9;
    --border-light: #eceef2;

    --accent: #0066cc;
    --accent-light: #3399ff;
    --accent-hover: #0052a3;
    --accent-soft: rgba(0, 102, 204, 0.08);

    --success: #10b981;
    --success-soft: rgba(16, 185, 129, 0.08);
    --warning: #f59e0b;
    --warning-soft: rgba(245, 158, 11, 0.08);
    --danger: #ef4444;
    --danger-soft: rgba(239, 68, 68, 0.08);
    --info: #0066cc;
    --info-soft: rgba(0, 102, 204, 0.08);

    --gradient-hero: linear-gradient(135deg, #0066cc 0%, #3399ff 100%);
    --gradient-card: linear-gradient(135deg, rgba(0, 102, 204, 0.03) 0%, rgba(51, 153, 255, 0.03) 100%);
}

/* Dark Theme */
[data-theme="dark"] {
    --bg-body: #1a1a1a;
    --bg-surface: #262626;
    --bg-surface-2: #333333;
    --bg-surface-3: #3d3d3d;
    --bg-hover: #303030;
    --bg-active: #3a3a3a;

    --text-primary: #f0f0f0;
    --text-secondary: #a0a0a8;
    --text-muted: #70707a;
    --text-inverse: #ffffff;

    --border-color: #3a3a3a;
    --border-light: #333333;

    --accent: #3399ff;
    --accent-light: #66b3ff;
    --accent-hover: #0066cc;
    --accent-soft: rgba(51, 153, 255, 0.12);

    --success: #34d399;
    --success-soft: rgba(52, 211, 153, 0.1);
    --warning: #fbbf24;
    --warning-soft: rgba(251, 191, 36, 0.1);
    --danger: #f87171;
    --danger-soft: rgba(248, 113, 113, 0.1);
    --info: #3399ff;
    --info-soft: rgba(51, 153, 255, 0.12);

    --gradient-hero: linear-gradient(135deg, #0066cc 0%, #3399ff 100%);
    --gradient-card: linear-gradient(135deg, rgba(0, 102, 204, 0.05) 0%, rgba(51, 153, 255, 0.05) 100%);
}

/* ============================================
   Base Styles
   ============================================ */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    transition: background var(--transition), color var(--transition);
}

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

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

/* ============================================
   Navigation
   ============================================ */

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 64px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background var(--transition), border-color var(--transition);
}

.nav-brand a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-size: 1.15rem;
    font-weight: 700;
}

.nav-brand .logo-icon {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links a {
    padding: 8px 14px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition);
}

.nav-links a:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.nav-links .btn-primary {
    background: var(--accent);
    color: var(--text-inverse) !important;
    padding: 8px 18px;
}

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

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    border: none;
    background: var(--bg-hover);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
    margin-left: 8px;
}

.theme-toggle:hover {
    background: var(--bg-active);
    color: var(--text-primary);
}

[data-theme="light"] .moon-icon,
[data-theme="dark"] .sun-icon {
    display: none;
}

/* ============================================
   Main Layout
   ============================================ */

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px 64px;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    padding: 64px 0 48px;
    min-height: 400px;
}

.hero-content {
    flex: 1;
    max-width: 540px;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-illustration {
    color: var(--accent);
    opacity: 0.15;
    flex-shrink: 0;
}

/* ============================================
   Buttons
   ============================================ */

.btn-large, .btn-primary, .btn-outline, .btn-success, .btn-danger, .btn-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-large {
    padding: 14px 32px;
    font-size: 1rem;
    background: var(--accent);
    color: var(--text-inverse);
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.btn-large:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.btn-primary {
    background: var(--accent);
    color: var(--text-inverse);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}

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

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

.btn-outline:hover {
    background: var(--bg-hover);
    border-color: var(--accent);
    color: var(--accent);
}

.btn-success {
    background: var(--success);
    color: #fff;
}

.btn-success:hover {
    background: #059669;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.85rem;
}

.btn-checkin {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--success);
    color: #fff;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
}

.btn-checkin:hover {
    background: #059669;
    color: #fff;
}

.btn-checkin.disabled {
    background: var(--bg-surface-3);
    color: var(--text-muted);
    cursor: not-allowed;
    pointer-events: none;
}

/* ============================================
   Features Section
   ============================================ */

.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-primary);
}

.features {
    padding: 48px 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all var(--transition);
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.feature-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   Stats Section
   ============================================ */

.stats-section {
    padding: 48px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: center;
    transition: all var(--transition);
}

.stat-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ============================================
   Auth Pages (login, register)
   ============================================ */

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 180px);
    padding: 32px 16px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header svg {
    color: var(--accent);
    margin-bottom: 12px;
}

.auth-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

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

.auth-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.auth-form .input-icon {
    position: relative;
}

.auth-form .input-icon svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.auth-form .input-icon input {
    width: 100%;
    padding: 12px 12px 12px 42px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.auth-form .input-icon input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

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

.auth-form .btn-large {
    width: 100%;
    margin-top: 8px;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

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

/* ============================================
   Forms (general)
   ============================================ */

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all var(--transition);
    font-family: var(--font-sans);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

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

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.input-prefix {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    overflow: hidden;
}

.input-prefix .prefix {
    padding: 10px 12px;
    background: var(--bg-surface-2);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-family: var(--font-mono);
    border-right: 1px solid var(--border-color);
    white-space: nowrap;
}

.input-prefix input {
    border: none;
    border-radius: 0;
    box-shadow: none;
    flex: 1;
}

.input-prefix input:focus {
    box-shadow: none;
}

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

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 400;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
}

/* ============================================
   Alerts
   ============================================ */

.alert {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 0.95rem;
    border-left: 3px solid transparent;
}

.alert-success {
    background: var(--success-soft);
    color: var(--success);
    border-left-color: var(--success);
}

.alert-error {
    background: var(--danger-soft);
    color: var(--danger);
    border-left-color: var(--danger);
}

.alert-warning {
    background: var(--warning-soft);
    color: var(--warning);
    border-left-color: var(--warning);
}

.alert-info {
    background: var(--info-soft);
    color: var(--info);
    border-left-color: var(--info);
}

/* ============================================
   Dashboard
   ============================================ */

.dashboard {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    align-items: start;
}

.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 88px;
}

.user-card,
.points-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.user-card {
    display: flex;
    align-items: center;
    gap: 14px;
}

.user-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-info h3 {
    font-size: 1rem;
    font-weight: 600;
}

.user-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.points-card .points-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.points-card .points-value {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.stats-mini {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.stat-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px;
    text-align: center;
}

.stat-item .stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
}

.stat-item .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.dashboard-main {
    min-width: 0;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ============================================
   Site List / Site Cards
   ============================================ */

.site-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.site-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    transition: all var(--transition);
}

.site-row:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
}

.site-row-info {
    flex: 1;
    min-width: 0;
}

.site-row-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-row-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.site-row-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.storage-bar {
    height: 4px;
    background: var(--bg-surface-3);
    border-radius: 2px;
    overflow: hidden;
    max-width: 200px;
}

.storage-fill {
    height: 100%;
    background: var(--gradient-hero);
    border-radius: 2px;
    transition: width 0.5s ease;
}

/* Site Grid (explore page) */
.site-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.site-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all var(--transition);
}

.site-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.site-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.site-card-header svg {
    color: var(--accent);
    flex-shrink: 0;
}

.site-card-header h3 {
    font-size: 1.05rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.site-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.site-author {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ============================================
   Badges
   ============================================ */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--bg-surface-3);
    color: var(--text-secondary);
}

.badge-success {
    background: var(--success-soft);
    color: var(--success);
}

.badge-draft {
    background: var(--warning-soft);
    color: var(--warning);
}

.badge-public {
    background: var(--accent-soft);
    color: var(--accent);
}

/* ============================================
   Site Form (create/edit)
   ============================================ */

.site-form {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 28px;
}

.file-section {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
}

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

.section-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Upload */
.upload-form {
    margin-bottom: 24px;
}

.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.upload-area svg {
    color: var(--accent);
    margin-bottom: 12px;
}

.upload-area .upload-link {
    color: var(--accent);
    font-weight: 600;
}

.upload-area input[type="file"] {
    display: none;
}

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

.file-preview {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.file-preview-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--bg-surface-2);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
}

.file-preview-item .remove-file {
    color: var(--danger);
    cursor: pointer;
    font-size: 0.85rem;
}

/* File List */
.file-list {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.file-list-header,
.file-row {
    display: grid;
    grid-template-columns: 1fr 100px 60px;
    align-items: center;
    padding: 12px 16px;
    gap: 12px;
}

.file-list-header {
    background: var(--bg-surface-2);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.file-row {
    border-top: 1px solid var(--border-light);
    font-size: 0.9rem;
    transition: background var(--transition);
}

.file-row:hover {
    background: var(--bg-hover);
}

.file-name {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-name svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

.file-size {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: right;
}

/* ============================================
   Empty State
   ============================================ */

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px 24px;
    color: var(--text-muted);
    text-align: center;
}

.empty-state svg {
    margin-bottom: 16px;
    opacity: 0.4;
}

.empty-state p {
    font-size: 1rem;
    margin-bottom: 8px;
}

.empty-state .text-sm {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.empty-state.small {
    padding: 32px 24px;
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
    text-align: center;
    padding: 32px 24px;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border-color);
    margin-top: 48px;
}

/* ============================================
   Utilities
   ============================================ */

.text-sm {
    font-size: 0.85rem;
    color: var(--text-muted);
}

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

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 40px 0 32px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-illustration {
        display: none;
    }

    .hero-actions {
        justify-content: center;
    }

    .navbar {
        padding: 0 16px;
    }

    .nav-links a:not(.btn-primary) {
        display: none;
    }

    .dashboard {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        position: static;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .site-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-row-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .file-list-header,
    .file-row {
        grid-template-columns: 1fr 80px 50px;
    }

    .main-content {
        padding: 20px 16px 48px;
    }

    .auth-card {
        padding: 28px 24px;
    }
}
/* ============================================
   Admin Panel Styles
   ============================================ */

.admin-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 28px;
    align-items: start;
}

.admin-sidebar {
    position: sticky;
    top: 88px;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition);
    position: relative;
}

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

.admin-nav-item.active {
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 600;
}

.nav-badge {
    margin-left: auto;
    background: var(--danger);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.admin-main {
    min-width: 0;
}

/* Review Table */
.review-table {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.review-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 80px 1.5fr 100px;
    align-items: center;
    padding: 12px 16px;
    gap: 12px;
    font-size: 0.9rem;
    border-top: 1px solid var(--border-light);
}

.review-row.review-header {
    background: var(--bg-surface-2);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-top: none;
}

.text-mono {
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.text-truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.badge-danger {
    background: var(--danger-soft);
    color: var(--danger);
}

/* Review Cards */
.review-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    transition: all var(--transition);
}

.review-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
}

.review-card-info {
    flex: 1;
    min-width: 0;
}

.review-card-info h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.review-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.review-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.5;
}

.review-card-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 160px;
}

.review-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.review-form .review-input {
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-surface-2);
    color: var(--text-primary);
    font-size: 0.85rem;
    width: 100%;
}

.review-form .review-input:focus {
    outline: none;
    border-color: var(--accent);
}

.admin-section h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
}

/* Review status badges on dashboard */
.badge-pending {
    background: var(--warning-soft);
    color: var(--warning);
}

.badge-approved {
    background: var(--success-soft);
    color: var(--success);
}

.badge-rejected {
    background: var(--danger-soft);
    color: var(--danger);
}

/* Admin responsive */
@media (max-width: 768px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
    }

    .admin-nav {
        flex-direction: row;
        overflow-x: auto;
    }

    .review-card {
        flex-direction: column;
    }

    .review-card-actions {
        flex-direction: row;
        flex-wrap: wrap;
        min-width: auto;
    }

    .review-row {
        grid-template-columns: 1fr 1fr;
    }

    .review-row.review-header {
        display: none;
    }
}
