/* 
 * Lit or Not - Main Stylesheet
 * Modern, Instagram-inspired design
 */

:root {
    /* Brand Colors */
    --primary-color: #FF5607;
    --primary-light: #FF8534;
    --secondary-color: #1A1A2E;
    --accent-color: #FFD700;
    
    /* Lit/Not Colors */
    --lit-color: #FF5607;
    --not-color: #4A5568;
    
    /* Background Colors */
    --bg-primary: #F7F8FA;
    --bg-card: #FFFFFF;
    --bg-dark: #1A1A2E;
    
    /* Text Colors */
    --text-primary: #1A1A2E;
    --text-secondary: #718096;
    --text-light: #FFFFFF;
    
    /* Status Colors */
    --success-color: #48BB78;
    --warning-color: #ECC94B;
    --error-color: #FC8181;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* Utility Classes */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 16px;
}

.container-wide {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary-color);
}

.text-secondary {
    color: var(--text-secondary);
}

/* Gradient */
.gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

/* Header / Navbar */
.navbar {
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 16px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-logo {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.navbar-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-color);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: background var(--transition-fast);
    position: relative;
}

.navbar-btn:hover {
    background: var(--bg-primary);
}

.navbar-btn .badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 16px;
    height: 16px;
    background: var(--error-color);
    color: white;
    font-size: 10px;
    font-weight: bold;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.navbar-btn-text {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 20px;
    padding: 8px;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}
.navbar-btn-text:hover {
    background: rgba(255, 86, 7, 0.1);
}

.btn-get-app {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(255, 86, 7, 0.35);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.btn-get-app::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}
.btn-get-app:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 86, 7, 0.45);
}
.btn-get-app:hover::before {
    left: 100%;
}
.btn-get-app:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 86, 7, 0.3);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.06);
    z-index: 100;
    padding: 8px 0;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
}

.bottom-nav-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 8px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    color: var(--text-secondary);
    min-width: 60px;
}

.nav-item:hover {
    background: rgba(255, 86, 7, 0.1);
}

.nav-item.active {
    color: var(--primary-color);
    background: rgba(255, 86, 7, 0.1);
}

.nav-item i {
    font-size: 24px;
    margin-bottom: 4px;
}

.nav-item span {
    font-size: 11px;
    font-weight: 500;
}

.nav-upload {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(255, 86, 7, 0.4);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    margin-top: -20px;
}

.nav-upload:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(255, 86, 7, 0.5);
}

/* Main Content */
.main-content {
    padding-bottom: 90px;
    min-height: calc(100vh - 60px);
}

/* Photo Card */
.photo-card {
    background: var(--bg-card);
    margin-bottom: 8px;
    box-shadow: var(--shadow-card);
}

.photo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
}

.photo-user {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: opacity 0.2s;
}
.photo-user:hover {
    opacity: 0.8;
}
.photo-user:active {
    opacity: 0.6;
}

.photo-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: linear-gradient(135deg, #FF5607, #FF8534);
}

.photo-user-info h4 {
    font-size: 14px;
    font-weight: 600;
}

.photo-user-info span {
    font-size: 12px;
    color: var(--text-secondary);
}

.photo-menu-btn {
    color: var(--text-secondary);
    padding: 8px;
}

.follow-btn {
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.follow-btn.follow {
    background: var(--primary-color);
    color: white;
}

.follow-btn.following {
    background: var(--bg-primary);
    color: var(--text-secondary);
}

.photo-image-container {
    position: relative;
    width: 100%;
    background: #E2E8F0;
    overflow: hidden;
}

.photo-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #E2E8F0 0%, #CBD5E0 50%, #E2E8F0 100%);
    background-size: 200% 200%;
    animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.photo-image {
    width: 100%;
    display: block;
    cursor: pointer;
    position: relative;
    z-index: 1;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.photo-image.loading {
    opacity: 0;
}

.photo-image:not(.loading) + .photo-placeholder,
.photo-image:not(.loading) ~ .photo-placeholder {
    display: none;
}


.photo-caption {
    padding: 0 16px;
    margin-top: 12px;
}

.photo-caption p {
    font-size: 14px;
    line-height: 1.4;
}

.photo-caption .username {
    font-weight: 600;
    margin-right: 6px;
}

/* Vote Buttons */
.vote-section {
    padding: 16px;
}

.vote-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.vote-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: var(--radius-lg);
    font-size: 16px;
    font-weight: 700;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
}

.vote-btn.lit {
    background: rgba(255, 86, 7, 0.1);
    color: var(--lit-color);
    border-color: var(--lit-color);
}

.vote-btn.lit:hover,
.vote-btn.lit.active {
    background: var(--lit-color);
    color: white;
}

.vote-btn.not {
    background: rgba(74, 85, 104, 0.1);
    color: var(--not-color);
    border-color: var(--not-color);
}

.vote-btn.not:hover,
.vote-btn.not.active {
    background: var(--not-color);
    color: white;
}

.vote-btn i {
    font-size: 20px;
}

.vote-stats {
    display: flex;
    align-items: center;
    gap: 16px;
}

.vote-bar {
    flex: 1;
    height: 8px;
    background: var(--bg-primary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.vote-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--lit-color), var(--primary-light));
    border-radius: var(--radius-full);
    transition: width var(--transition-normal);
}

.vote-percentage {
    font-size: 14px;
    font-weight: 700;
    color: var(--lit-color);
    min-width: 45px;
    text-align: right;
}

.vote-count {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* Photo Actions */
.photo-actions {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    gap: 16px;
    border-top: 1px solid var(--bg-primary);
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 14px;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.action-btn:hover {
    color: var(--text-primary);
    background: var(--bg-primary);
}

.action-btn i {
    font-size: 20px;
}

/* Auth Pages */
.auth-page {
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0 24px 100px;
}

.auth-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    width: 100%;
    max-width: 420px;
}

.auth-logo {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 12px 25px rgba(255, 86, 7, 0.4);
}

.auth-logo i {
    font-size: 55px;
    color: white;
}

.auth-title {
    font-size: 32px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 8px;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.auth-subtitle span {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 86, 7, 0.1);
    color: var(--primary-color);
    border-radius: var(--radius-full);
    font-weight: 500;
}

/* Form Elements */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-md);
    font-size: 16px;
    transition: all var(--transition-fast);
    background: var(--bg-card);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 86, 7, 0.1);
}

.form-input::placeholder {
    color: var(--text-secondary);
}

.input-group {
    position: relative;
}

.input-group .form-input {
    padding-left: 44px;
}

.input-group i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 18px;
}

.input-group .toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-size: 16px;
    font-weight: 600;
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    box-shadow: 0 4px 12px rgba(255, 86, 7, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 86, 7, 0.4);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: rgba(255, 86, 7, 0.1);
}

.btn-google {
    background: var(--bg-card);
    border: 1px solid #E2E8F0;
    color: var(--text-primary);
    width: 100%;
}

.btn-google:hover {
    background: var(--bg-primary);
}

.btn-google img {
    width: 20px;
    height: 20px;
}

.btn-block {
    width: 100%;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #E2E8F0;
}

.divider span {
    padding: 0 16px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Profile Page */
.profile-header {
    background: var(--bg-card);
    padding: 24px 16px;
    text-align: center;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-full);
    object-fit: cover;
    margin: 0 auto 16px;
    border: 4px solid var(--bg-primary);
    box-shadow: var(--shadow-md);
}

.profile-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.profile-bio {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 16px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.profile-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* Photo Grid */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    padding: 2px;
}

.grid-item {
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.grid-item:hover img {
    transform: scale(1.05);
}

.grid-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.grid-item:hover .grid-item-overlay {
    opacity: 1;
}

.grid-stat {
    display: flex;
    align-items: center;
    gap: 4px;
    color: white;
    font-weight: 600;
}

/* Chat List */
.chat-list {
    background: var(--bg-card);
}

.chat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--bg-primary);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.chat-item:hover {
    background: var(--bg-primary);
}

.chat-avatar {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    object-fit: cover;
    position: relative;
}

.chat-avatar.online::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: var(--success-color);
    border: 2px solid var(--bg-card);
    border-radius: var(--radius-full);
}

.chat-info {
    flex: 1;
    min-width: 0;
}

.chat-name {
    font-weight: 600;
    margin-bottom: 2px;
}

.chat-preview {
    font-size: 14px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-meta {
    text-align: right;
}

.chat-time {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.chat-unread {
    min-width: 20px;
    height: 20px;
    background: var(--primary-color);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}

/* Chat Messages */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.message {
    max-width: 75%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 15px;
    line-height: 1.4;
}

.message.sent {
    align-self: flex-end;
    background: var(--primary-color);
    color: white;
    border-bottom-right-radius: 4px;
}

.message.received {
    align-self: flex-start;
    background: var(--bg-primary);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}

.message-time {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 4px;
}

.chat-input-container {
    padding: 12px 16px;
    background: var(--bg-card);
    border-top: 1px solid var(--bg-primary);
    display: flex;
    gap: 12px;
    align-items: center;
}

.chat-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-full);
    font-size: 15px;
    outline: none;
}

.chat-input:focus {
    border-color: var(--primary-color);
}

.chat-send-btn {
    width: 44px;
    height: 44px;
    background: var(--primary-color);
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform var(--transition-normal);
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: background var(--transition-fast);
}

.modal-close:hover {
    background: var(--bg-primary);
}

.modal-body {
    padding: 20px;
}

/* Comments Sheet */
.comments-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    max-height: 70vh;
    transform: translateY(100%);
    transition: transform var(--transition-normal);
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.comments-sheet.active {
    transform: translateY(0);
}

.comments-handle {
    width: 40px;
    height: 4px;
    background: #E2E8F0;
    border-radius: var(--radius-full);
    margin: 12px auto;
}

.comments-header {
    padding: 16px;
    text-align: center;
    border-bottom: 1px solid var(--bg-primary);
}

.comments-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.comment-item {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    object-fit: cover;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
}

.comment-bubble {
    background: var(--bg-primary);
    padding: 8px 12px;
    border-radius: 18px;
    display: inline-block;
}

.comment-username {
    font-weight: 600;
    font-size: 13px;
}

.comment-text {
    font-size: 14px;
}

.comment-actions {
    display: flex;
    gap: 16px;
    margin-top: 4px;
    padding-left: 12px;
    font-size: 12px;
    color: var(--text-secondary);
}

.comment-actions span {
    cursor: pointer;
}

.comment-actions span:hover {
    color: var(--text-primary);
}

.comment-input-container {
    padding: 12px 16px;
    border-top: 1px solid var(--bg-primary);
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Notifications */
.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--bg-primary);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.notification-item:hover {
    background: var(--bg-primary);
}

.notification-item.unread {
    background: rgba(255, 86, 7, 0.05);
}

.notification-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.notification-icon.vote {
    background: rgba(255, 86, 7, 0.1);
    color: var(--primary-color);
}

.notification-icon.comment {
    background: rgba(74, 85, 104, 0.1);
    color: var(--not-color);
}

.notification-icon.follow {
    background: rgba(72, 187, 120, 0.1);
    color: var(--success-color);
}

.notification-content {
    flex: 1;
}

.notification-text {
    font-size: 14px;
    line-height: 1.4;
}

.notification-time {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Loading States */
.loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--bg-primary);
    border-top-color: var(--primary-color);
    border-radius: var(--radius-full);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: toast-in 0.3s ease;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.toast.success {
    background: var(--success-color);
    color: white;
}

.toast.error {
    background: var(--error-color);
    color: white;
}

.toast.info {
    background: var(--secondary-color);
    color: white;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 60px 24px;
}

.empty-state i {
    font-size: 64px;
    color: #E2E8F0;
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 480px) {
    .auth-card {
        padding: 24px;
    }
    
    .auth-logo {
        width: 80px;
        height: 80px;
    }
    
    .auth-logo i {
        font-size: 45px;
    }
    
    .auth-title {
        font-size: 28px;
    }
    
    .profile-stats {
        gap: 24px;
    }
}

/* Upload Page */
.upload-page {
    padding: 24px 16px;
}

.upload-preview {
    width: 100%;
    max-width: 400px;
    margin: 0 auto 24px;
    aspect-ratio: 1;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px dashed #E2E8F0;
    transition: all var(--transition-fast);
}

.upload-preview:hover {
    border-color: var(--primary-color);
    background: rgba(255, 86, 7, 0.05);
}

.upload-preview.has-image {
    border: none;
}

.upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-placeholder {
    text-align: center;
    color: var(--text-secondary);
}

.upload-placeholder i {
    font-size: 48px;
    margin-bottom: 12px;
    color: #E2E8F0;
}

.upload-placeholder p {
    font-size: 14px;
}

/* Search */
.search-container {
    padding: 16px;
    background: var(--bg-card);
    position: sticky;
    top: 60px;
    z-index: 50;
}

.search-input-wrapper {
    position: relative;
}

.search-input-wrapper i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: none;
    background: var(--bg-primary);
    border-radius: var(--radius-full);
    font-size: 15px;
}

.search-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-color);
}

.search-results {
    padding: 8px 0;
}

.user-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.user-item:hover {
    background: var(--bg-primary);
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.user-info {
    flex: 1;
}

.user-name {
    font-weight: 600;
}

.user-bio {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Leaderboard */
.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-card);
    margin-bottom: 8px;
    border-radius: var(--radius-md);
}

.leaderboard-rank {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.leaderboard-rank.gold {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
}

.leaderboard-rank.silver {
    background: linear-gradient(135deg, #C0C0C0, #A0A0A0);
    color: white;
}

.leaderboard-rank.bronze {
    background: linear-gradient(135deg, #CD7F32, #8B4513);
    color: white;
}

.leaderboard-stats {
    text-align: right;
}

.leaderboard-lit {
    font-size: 18px;
    font-weight: 700;
    color: var(--lit-color);
}

.leaderboard-percentage {
    font-size: 12px;
    color: var(--text-secondary);
}
