/* CSS Variables */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-card: #252525;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --accent-magenta: #ff00ff;
    --accent-cyan: #00ffff;
    --accent-green: #00ff00;
    --border-color: #333333;
    --hover-glow: 0 0 20px rgba(255, 0, 255, 0.5);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Orbitron', monospace;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-magenta);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

/* Navigation Bar */
.navbar {
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--accent-magenta);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(255, 0, 255, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(45deg, var(--accent-magenta), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 3px;
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--accent-magenta);
    text-shadow: 0 0 10px var(--accent-magenta);
}

.nav-link.active {
    color: var(--accent-cyan);
    text-shadow: 0 0 10px var(--accent-cyan);
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -12px;
    background: var(--accent-cyan);
    color: var(--bg-primary);
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0 4px;
}

.notification-badge:not(:empty) {
    display: flex;
}

.logout-btn {
    background: transparent;
    border: 2px solid var(--accent-magenta);
    color: var(--accent-magenta);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Orbitron', monospace;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logout-btn:hover {
    background: var(--accent-magenta);
    color: var(--bg-primary);
    box-shadow: var(--hover-glow);
}

/* Delete Button */
.delete-blink-btn {
    margin-left: auto;
    background: transparent;
    border: 2px solid var(--accent-magenta);
    color: var(--accent-magenta);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-blink-btn:hover {
    background: var(--accent-magenta);
    color: var(--bg-primary);
    transform: rotate(90deg);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.5);
}

/* Fade out animation */
@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.9);
    }
}

/* Main Content */
.main-content {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.error {
    background: rgba(255, 0, 0, 0.1);
    border: 2px solid #ff0000;
    color: #ff6b6b;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Authentication Styles */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    padding: 2rem;
}

.auth-card {
    background: var(--bg-card);
    border: 2px solid var(--accent-magenta);
    border-radius: 20px;
    padding: 3rem;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.3);
}

.auth-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, var(--accent-magenta), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.auth-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.auth-tab {
    flex: 1;
    padding: 0.75rem;
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Orbitron', monospace;
    font-weight: 500;
    text-transform: uppercase;
    border-radius: 10px;
}

.auth-tab.active {
    background: var(--accent-magenta);
    color: var(--bg-primary);
    border-color: var(--accent-magenta);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.5);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.auth-input {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    padding: 1rem;
    border-radius: 10px;
    font-family: 'Orbitron', monospace;
    transition: all 0.3s ease;
}

.auth-input:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.auth-submit {
    background: linear-gradient(45deg, var(--accent-magenta), var(--accent-cyan));
    border: none;
    color: var(--bg-primary);
    padding: 1rem;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 0, 255, 0.5);
}

.auth-error {
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    border-radius: 8px;
    color: #ff6b6b;
    text-align: center;
}

/* App Container */
.app-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

/* Create Blink Section */
.create-blink-container {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.create-blink-container:hover {
    border-color: var(--accent-magenta);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.2);
}

.blink-textarea {
    width: 100%;
    background: var(--bg-secondary);
    border: none;
    color: var(--text-primary);
    padding: 1rem;
    border-radius: 10px;
    font-family: 'Orbitron', monospace;
    resize: none;
    transition: all 0.3s ease;
}

.blink-textarea:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.create-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.media-btn {
    background: transparent;
    border: 2px solid var(--accent-cyan);
    color: var(--accent-cyan);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Orbitron', monospace;
}

.media-btn:hover {
    background: var(--accent-cyan);
    color: var(--bg-primary);
}

.char-count {
    margin-left: auto;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.blink-btn {
    background: linear-gradient(45deg, var(--accent-magenta), var(--accent-cyan));
    border: none;
    color: var(--bg-primary);
    padding: 0.75rem 2rem;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.blink-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
}

.media-preview {
    margin-top: 1rem;
    position: relative;
}

.media-preview img,
.media-preview video {
    max-width: 100%;
    max-height: 300px;
    border-radius: 10px;
    border: 2px solid var(--accent-cyan);
}

.media-preview-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Blink Card Styles */
.blink-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.blink-card:hover {
    border-color: var(--accent-magenta);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.2);
}

.blink-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.blink-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--accent-cyan);
    cursor: pointer;
}

.blink-info {
    flex: 1;
}

.blink-username {
    font-weight: 700;
    color: var(--accent-magenta);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.blink-username:hover {
    text-shadow: 0 0 10px var(--accent-magenta);
}

.blink-time {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.blink-content {
    margin-bottom: 1rem;
    line-height: 1.5;
    word-wrap: break-word;
}

.blink-media {
    margin: 1rem 0;
}

.blink-media img,
.blink-media video {
    max-width: 100%;
    border-radius: 10px;
    border: 2px solid var(--border-color);
}

.blink-actions {
    display: flex;
    gap: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.blink-action {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-family: 'Orbitron', monospace;
}

.blink-action:hover {
    color: var(--accent-cyan);
    text-shadow: 0 0 10px var(--accent-cyan);
}

.blink-action.active {
    color: var(--accent-magenta);
}

.action-icon {
    font-size: 1.2rem;
}

.action-count {
    font-weight: 600;
}

/* Search Styles */
.search-container {
    position: relative;
    flex: 1;
    max-width: 400px;
    margin: 0 2rem;
}

.search-input {
    width: 100%;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: 25px;
    font-family: 'Orbitron', monospace;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.5rem;
    background: var(--bg-card);
    border: 2px solid var(--accent-magenta);
    border-radius: 15px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1500;
}

.search-section {
    padding: 1rem;
}

.search-section h4 {
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.search-result-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 10px;
}

.search-result-item:hover {
    background: var(--bg-secondary);
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.2);
}

.search-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--accent-cyan);
}

.search-info {
    flex: 1;
    overflow: hidden;
}

.search-username {
    color: var(--accent-magenta);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.search-bio,
.search-content {
    color: var(--text-secondary);
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-empty {
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
}

/* Profile Styles */
.profile-header {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* Edit Profile Button */
.edit-profile-btn {
    background: transparent;
    border: 2px solid var(--accent-cyan);
    color: var(--accent-cyan);
    padding: 0.75rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
}

.edit-profile-btn:hover {
    background: var(--accent-cyan);
    color: var(--bg-primary);
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.5);
}

/* Edit Profile Form */
.edit-profile-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--accent-cyan);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.file-input {
    display: none;
}

.file-label {
    background: var(--bg-secondary);
    border: 2px solid var(--accent-cyan);
    color: var(--accent-cyan);
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    display: inline-block;
    transition: all 0.3s ease;
    text-align: center;
}

.file-label:hover {
    background: var(--accent-cyan);
    color: var(--bg-primary);
}

.pic-preview {
    margin-top: 1rem;
}

.pic-preview img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--accent-magenta);
    object-fit: cover;
}

.bio-textarea {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    padding: 1rem;
    border-radius: 10px;
    font-family: 'Orbitron', monospace;
    resize: none;
}

.bio-textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.save-profile-btn {
    background: linear-gradient(45deg, var(--accent-magenta), var(--accent-cyan));
    border: none;
    color: var(--bg-primary);
    padding: 1rem;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.save-profile-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 0, 255, 0.5);
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--accent-magenta);
    margin-bottom: 1rem;
}

.profile-username {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--accent-magenta), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.profile-bio {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.profile-stat {
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

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

.follow-btn {
    background: linear-gradient(45deg, var(--accent-magenta), var(--accent-cyan));
    border: none;
    color: var(--bg-primary);
    padding: 0.75rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
}

.follow-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 0, 255, 0.5);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--bg-card);
    border: 2px solid var(--accent-magenta);
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(255, 0, 255, 0.4);
}

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

.modal-title {
    font-size: 1.5rem;
    background: linear-gradient(45deg, var(--accent-magenta), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: var(--accent-magenta);
    transform: rotate(90deg);
}

.modal-body {
    padding: 1.5rem;
    max-height: calc(80vh - 100px);
    overflow-y: auto;
}

/* Chime Styles */
.chime-form {
    margin-bottom: 2rem;
}

.chime-textarea {
    width: 100%;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    padding: 1rem;
    border-radius: 10px;
    font-family: 'Orbitron', monospace;
    resize: none;
    margin-bottom: 1rem;
}

.chime-textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.chime-submit {
    background: linear-gradient(45deg, var(--accent-cyan), var(--accent-green));
    border: none;
    color: var(--bg-primary);
    padding: 0.75rem 2rem;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.chime-submit:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.chimes-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chime-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.chime-item:hover {
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.2);
}

.chime-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--accent-cyan);
}

.chime-content {
    flex: 1;
}

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

.chime-username {
    color: var(--accent-magenta);
    font-weight: 600;
}

.chime-time {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.chime-text {
    color: var(--text-primary);
    line-height: 1.4;
}

/* Notification Styles */
.notification-card {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.notification-card.unread {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}

.notification-card:hover {
    border-color: var(--accent-magenta);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.3);
}

.notif-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--accent-cyan);
}

.notif-content {
    flex: 1;
}

.notif-username {
    color: var(--accent-magenta);
    font-weight: 600;
}

.notif-time {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulse-animation {
    animation: pulse 0.3s ease-in-out;
}

@keyframes notification-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 255, 255, 0.7);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(0, 255, 255, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 255, 255, 0);
    }
}

.notification-badge:not(:empty) {
    animation: notification-pulse 2s infinite;
}

@keyframes pulse-loading {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 1;
    }
}

.loading {
    animation: pulse-loading 1.5s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .search-container {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        max-width: none;
        margin: 0;
        padding: 0 1rem;
        background: var(--bg-secondary);
        z-index: 999;
    }

    .auth-card {
        padding: 2rem;
    }

    .app-container {
        padding: 1rem;
    }

    .profile-stats {
        gap: 2rem;
    }

    .modal-content {
        max-height: 100vh;
        height: 100%;
        border-radius: 0;
    }

    .create-blink-container {
        position: sticky;
        top: 120px;
        z-index: 998;
    }
}

/* Legal Links Footer */
.app-footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 1rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--accent-cyan);
}

.footer-separator {
    color: var(--text-secondary);
    margin: 0 1rem;
}

/* Report and Admin buttons */
.blink-menu {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

.report-btn {
    background: transparent;
    border: 1px solid var(--text-secondary);
    color: var(--text-secondary);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.report-btn:hover {
    border-color: #ff9900;
    color: #ff9900;
    box-shadow: 0 0 10px rgba(255, 153, 0, 0.5);
}

.admin-delete-btn {
    background: transparent;
    border: 1px solid #ff0000;
    color: #ff0000;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-delete-btn:hover {
    background: #ff0000;
    color: white;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

/* Admin Dashboard Styles - Add at the end of styles.css */
.admin-nav-link {
    color: #ff9900 !important;
}

.admin-nav-link:hover {
    color: var(--accent-magenta) !important;
    text-shadow: 0 0 10px var(--accent-magenta);
}

.admin-dashboard {
    padding: 20px;
}

.admin-dashboard h2 {
    margin-bottom: 20px;
    color: var(--text-primary);
    background: linear-gradient(45deg, var(--accent-magenta), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Report Cards */
.reports-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.report-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
    animation: fadeIn 0.3s ease-out;
}

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

.report-type {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.report-type.blink {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.report-type.user {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.report-reason {
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 12px;
    text-transform: capitalize;
}

.report-date {
    margin-left: auto;
    font-size: 12px;
    color: var(--text-secondary);
}

.report-info p,
.reported-content p,
.reported-user p {
    margin: 8px 0;
    color: var(--text-primary);
}

.content-preview {
    background: rgba(0, 0, 0, 0.2);
    padding: 12px;
    border-radius: 8px;
    margin: 10px 0;
    font-style: italic;
    color: var(--text-secondary);
}

.report-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.report-actions .btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Orbitron', monospace;
}

.btn-resolve {
    background: #10b981;
    color: white;
}

.btn-resolve:hover {
    background: #059669;
    transform: translateY(-1px);
}

.btn-delete {
    background: #ef4444;
    color: white;
}

.btn-delete:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.btn-ban {
    background: #f59e0b;
    color: white;
}

.btn-ban:hover {
    background: #d97706;
    transform: translateY(-1px);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stat-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--accent-cyan);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Success Message */
.success {
    background: #10b981;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Admin Dropdown Styling */
.admin-dropdown {
    position: relative;
    display: inline-block;
}

.admin-nav-link {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    font-family: 'Orbitron', monospace;
    font-size: inherit;
    cursor: pointer;
    padding: 0;
}

.admin-nav-link:hover {
    color: var(--accent-magenta);
    text-shadow: 0 0 10px var(--accent-magenta);
}

.admin-nav-link.active {
    color: var(--accent-cyan);
    text-shadow: 0 0 10px var(--accent-cyan);
}

/* Admin Menu Dropdown */
.admin-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-card);
    border: 2px solid var(--accent-magenta);
    border-radius: 10px;
    margin-top: 15px;
    min-width: 150px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.admin-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.admin-menu a:last-child {
    border-bottom: none;
}

.admin-menu a:hover {
    background: var(--bg-secondary);
    color: var(--accent-cyan);
    text-shadow: 0 0 5px var(--accent-cyan);
}

/* Make the dropdown arrow smaller */
.admin-nav-link::after {
    content: " ▼";
    font-size: 0.7em;
    margin-left: 5px;
}

/* User Management Styles */
.user-search {
    margin-bottom: 20px;
}

.users-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.user-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.user-card:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}

.user-card-header {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--accent-cyan);
}

.user-info {
    flex: 1;
}

.user-info h3 {
    color: var(--accent-magenta);
    margin-bottom: 5px;
}

.user-email {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.user-badges {
    display: flex;
    gap: 8px;
}

.badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge.admin {
    background: rgba(255, 215, 0, 0.2);
    color: gold;
}

.badge.banned {
    background: rgba(255, 0, 0, 0.2);
    color: #ff6b6b;
}

.user-actions {
    display: flex;
    gap: 10px;
}

.btn-reset {
    background: #6366f1;
    color: white;
}

.btn-reset:hover {
    background: #4f46e5;
}

.btn-unban {
    background: #10b981;
    color: white;
}

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

/* Profile Actions */
.profile-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: center;
}

/* Change Password Button */
.change-password-btn {
    background: transparent;
    border: 2px solid var(--accent-magenta);
    color: var(--accent-magenta);
    padding: 0.75rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.change-password-btn:hover {
    background: var(--accent-magenta);
    color: var(--bg-primary);
    box-shadow: 0 5px 20px rgba(255, 0, 255, 0.5);
}

/* Change Password Form */
.change-password-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.change-password-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.change-password-form label {
    color: var(--accent-cyan);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* Add to client/style.css */

/* Clickable user card styling */
.clickable-user {
    transition: all 0.3s ease;
    border-radius: 10px;
    padding: 10px;
    margin: -10px;
}

.clickable-user:hover {
    background: rgba(255, 0, 255, 0.1);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.3);
    transform: translateX(5px);
}

.clickable-user:hover h3 {
    color: var(--accent-cyan);
    text-shadow: 0 0 10px var(--accent-cyan);
}

/* Admin back button styling (already included inline, but can be moved here) */
.admin-back-button {
    position: absolute;
    top: 10px;
    left: 10px;
    background: transparent;
    border: 1px solid var(--accent-magenta);
    color: var(--accent-magenta);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Orbitron', monospace;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.admin-back-button:hover {
    background: var(--accent-magenta);
    color: var(--bg-primary);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.5);
}

/* Make profile header relative for back button positioning */
.profile-header {
    position: relative;
}

/* Visual indicator on user card that it's clickable */
.user-card .user-card-header {
    position: relative;
}

.user-card .user-card-header::after {
    content: "→";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-magenta);
    font-size: 1.5rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.user-card:hover .user-card-header::after {
    opacity: 1;
    transform: translateY(-50%) translateX(5px);
}

/* Buy Me a Coffee link styling */
.footer-link[href*="buymeacoffee"] {
    color: var(--accent-magenta);
    transition: all 0.3s ease;
}

.footer-link[href*="buymeacoffee"]:hover {
    color: var(--accent-cyan);
    text-shadow: 0 0 10px var(--accent-cyan);
    transform: translateY(-2px);
}

/* Optional: Add a pulsing animation to draw attention */
@keyframes coffee-pulse {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
        text-shadow: 0 0 15px var(--accent-magenta);
    }
}

.footer-link[href*="buymeacoffee"] {
    animation: coffee-pulse 3s ease-in-out infinite;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    width: 40px;
    height: 40px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--accent-magenta);
    margin: 5px auto;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 65px;
    height: 65px;
    background: linear-gradient(45deg, var(--accent-magenta), var(--accent-cyan));
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255, 0, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: all 0.3s ease;
    z-index: 1000;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(255, 0, 255, 0.6);
}

.fab:active {
    transform: scale(0.95);
}

.fab-icon {
    font-size: 1.5rem;
    margin-bottom: 2px;
}

.fab-text {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Mobile Blink Modal */
.mobile-blink-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    transition: transform 0.3s ease;
    transform: translateY(100%);
}

.mobile-blink-modal:not(.hidden) {
    transform: translateY(0);
}

.mobile-blink-content {
    background: var(--bg-card);
    border-top: 3px solid var(--accent-magenta);
    border-radius: 20px 20px 0 0;
    padding: 1.5rem;
    max-height: 80vh;
    overflow-y: auto;
}

.mobile-blink-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.mobile-blink-header h3 {
    margin: 0;
    color: var(--accent-cyan);
}

.mobile-blink-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-blink-close:hover {
    color: var(--accent-magenta);
}

.mobile-blink-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Mobile visibility classes */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

/* Enhanced Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Show/hide mobile elements */
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: flex !important;
    }

    .mobile-menu-toggle {
        display: block;
    }

    /* Navigation adjustments */
    .nav-container {
        padding: 0.75rem 1rem;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
        border-bottom: 2px solid var(--accent-magenta);
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
    }

    .nav-links.mobile-menu-open {
        transform: translateY(0);
    }

    .nav-link {
        display: block;
        padding: 0.75rem;
        text-align: center;
        border: 1px solid var(--border-color);
        border-radius: 10px;
        width: 100%;
    }

    .nav-link:hover {
        background: rgba(255, 0, 255, 0.1);
    }

    /* Search container mobile */
    .search-container {
        position: relative;
        width: 100%;
        max-width: none;
        margin: 1rem 0 0 0;
        order: -1;
    }

    .search-input {
        font-size: 0.9rem;
    }

    .search-results {
        position: fixed;
        top: 120px;
        left: 10px;
        right: 10px;
        max-height: 60vh;
    }

    /* Admin dropdown mobile */
    .admin-dropdown {
        width: 100%;
    }

    .admin-menu {
        position: relative;
        top: 0;
        right: 0;
        margin-top: 0.5rem;
        width: 100%;
    }

    /* Logo centering when menu is closed */
    .logo {
        flex: 1;
        text-align: center;
    }

    .logo-text {
        font-size: 1.5rem;
    }

    /* Content area adjustments */
    .app-container {
        padding: 0.5rem;
        padding-bottom: 100px; /* Space for FAB */
    }

    .main-content {
        margin-top: 60px;
    }

    /* Blink cards mobile */
    .blink-card {
        border-radius: 15px;
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .blink-header {
        gap: 0.5rem;
    }

    .blink-avatar {
        width: 40px;
        height: 40px;
    }

    .blink-actions {
        gap: 1.5rem;
    }

    /* Profile page mobile */
    .profile-header {
        padding: 1.5rem;
    }

    .profile-stats {
        gap: 1.5rem;
    }

    .profile-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .edit-profile-btn,
    .change-password-btn {
        width: 100%;
    }

    /* Modal adjustments */
    .modal-content {
        width: 95%;
        margin: 1rem;
        max-height: 90vh;
    }

    /* Footer mobile */
    .app-footer {
        padding: 0.75rem;
        font-size: 0.8rem;
    }

    .footer-separator {
        margin: 0 0.5rem;
    }

    /* Auth card mobile */
    .auth-card {
        padding: 1.5rem;
        margin: 1rem;
    }

    .auth-title {
        font-size: 2rem;
    }

    /* Notification cards mobile */
    .notification-card {
        padding: 1rem;
    }

    /* Make tappable areas larger on mobile */
    .blink-action,
    .nav-link,
    .logout-btn {
        min-height: 44px; /* iOS recommended touch target */
    }
}

/* Ultra small devices */
@media (max-width: 380px) {
    .fab {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }

    .fab-icon {
        font-size: 1.2rem;
    }

    .fab-text {
        font-size: 0.6rem;
    }

    .blink-actions {
        font-size: 0.9rem;
    }
}

/* Landscape mode adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    .mobile-blink-content {
        max-height: 90vh;
    }

    .auth-card {
        margin: 0.5rem;
        padding: 1rem;
    }
}

/* Add these additional mobile fixes to your style.css */

/* Fix mobile navigation initial state */
@media (max-width: 768px) {
    /* Hide nav links by default on mobile */
    .nav-links {
        display: none !important;
    }

    /* Show nav links only when menu is open */
    .nav-links.mobile-menu-open {
        display: flex !important;
    }

    /* Fix header layout on mobile */
    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 1rem;
    }

    /* Center logo when menu is closed */
    .logo {
        flex: 1;
        text-align: center;
    }

    /* Hamburger menu visible */
    .mobile-menu-toggle {
        display: block !important;
        z-index: 1001;
    }

    /* Hide search container on mobile initially */
    .search-container {
        display: none !important;
    }

    /* Show search when nav is open */
    .nav-links.mobile-menu-open ~ .search-container,
    .search-container.mobile-search-active {
        display: block !important;
    }
}

/* Ensure hamburger lines are visible */
.mobile-menu-toggle span {
    background: var(--accent-magenta) !important;
    box-shadow: 0 0 5px rgba(255, 0, 255, 0.5);
}

/* Fix the disconnect button on mobile */
@media (max-width: 768px) {
    .logout-btn {
        width: 100%;
        margin-top: 0.5rem;
    }
}

/* Fix the FAB positioning to not overlap content */
.content-area {
    padding-bottom: 100px !important;
}

/* Ensure proper z-index hierarchy */
.navbar {
    z-index: 1000;
}

.nav-links.mobile-menu-open {
    z-index: 999;
}

.fab {
    z-index: 900;
}

/* Fix admin dropdown on mobile */
@media (max-width: 768px) {
    .admin-dropdown {
        width: 100%;
        order: 10; /* Put admin menu before logout */
    }

    .admin-nav-link {
        display: block;
        width: 100%;
        text-align: center;
        padding: 0.75rem;
        border: 1px solid var(--border-color);
        border-radius: 10px;
    }
}

/* Hide desktop-only elements properly */
@media (max-width: 768px) {
    .create-blink-container {
        display: none !important;
    }
}

/* Search Tips */
.search-tips {
    padding: 1rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.search-tips p {
    margin: 0.25rem 0;
}

.search-tips strong {
    color: var(--accent-cyan);
}

/* @Mentions in Blinks */
.mention {
    color: var(--accent-cyan);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.mention:hover {
    text-shadow: 0 0 10px var(--accent-cyan);
    text-decoration: underline;
}

/* Make search results more interactive */
.search-result-item {
    transition: all 0.3s ease;
}

.search-result-item:hover {
    transform: translateX(5px);
}

/* Username styling in search */
.search-username {
    color: var(--accent-magenta);
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

/* Better search input focus */
.search-input:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
}

/* Search Results Page */
.search-results-page {
    padding: 1rem 0;
}

.search-header {
    margin-bottom: 2rem;
}

.search-header h2 {
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
}

.search-summary {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.search-section {
    margin-bottom: 3rem;
}

.search-section h3 {
    color: var(--accent-magenta);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Users Grid */
.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.user-result-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.user-result-card:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    transform: translateY(-2px);
}

.user-result-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--accent-cyan);
}

.user-result-info {
    flex: 1;
}

.user-result-username {
    color: var(--accent-magenta);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.user-result-bio {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.user-result-stats {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Quick search dropdown */
.search-see-all {
    padding: 1rem;
    text-align: center;
    color: var(--accent-cyan);
    cursor: pointer;
    border-top: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.search-see-all:hover {
    background: rgba(0, 255, 255, 0.1);
}

/* Search tips in results */
.search-tips {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 1rem;
}

/* Add these styles to your style.css file */

/* ===== ADD ALL OF THIS TO YOUR style.css FILE ===== */

/* ===== INFINITE SCROLL LOADER ===== */
.scroll-loader {
    padding: 2rem;
    text-align: center;
    margin: 1rem 0;
}

.scroll-loader .loading {
    display: inline-block;
    color: var(--accent-cyan);
    position: relative;
}

.scroll-loader .loading::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border: 2px solid var(--accent-cyan);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* Smooth loading transition */
.blink-card {
    animation: fadeInUp 0.3s ease-out;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Prevent layout shift during loading */
.content-area {
    min-height: 100vh;
}

/* ===== LAZY LOADING STYLES ===== */
img.lazy {
    background: var(--bg-secondary);
    background-image: linear-gradient(
        90deg,
        var(--bg-secondary) 0%,
        var(--bg-card) 50%,
        var(--bg-secondary) 100%
    );
    background-size: 200% 100%;
    transition: opacity 0.3s ease-in-out;
}

img.lazy-loading {
    animation: shimmer 1.5s ease-in-out infinite;
    opacity: 0.7;
}

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

img.lazy-loaded {
    animation: fadeIn 0.3s ease-in-out;
    cursor: zoom-in;
}

@keyframes fadeIn {
    from {
        opacity: 0.7;
    }
    to {
        opacity: 1;
    }
}

img.lazy-error {
    opacity: 0.5;
}

/* Aspect ratio containers for media */
.blink-media {
    position: relative;
    background: var(--bg-secondary);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.blink-media:hover {
    transform: scale(1.01);
}

.blink-media.image-container {
    /* 16:9 aspect ratio placeholder */
    padding-bottom: 56.25%;
}

.blink-media.image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== MEDIA VIEWER ===== */
.media-viewer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.media-viewer-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.media-viewer-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border: 2px solid var(--accent-magenta);
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(255, 0, 255, 0.5);
}

.media-viewer-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: 2px solid var(--accent-cyan);
    color: var(--accent-cyan);
    font-size: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-viewer-close:hover {
    background: var(--accent-cyan);
    color: var(--bg-primary);
    transform: rotate(90deg);
}

/* Make media images clickable */
.blink-media img {
    cursor: zoom-in;
    transition: opacity 0.3s ease;
}

.blink-media img:hover {
    opacity: 0.9;
}

/* ===== INTERACTION FIXES ===== */

/* Remove will-change to prevent jank */
.blink-card {
    will-change: auto;
}

/* Fix hover state delays */
.blink-card:hover {
    transition-delay: 0s;
}

/* Make clickable elements more obvious */
.blink-username,
.blink-avatar,
.chime-username,
.mention {
    cursor: pointer;
    transition: all 0.2s ease;
}

.blink-username:hover,
.chime-username:hover {
    color: var(--accent-cyan);
    text-shadow: 0 0 5px var(--accent-cyan);
}

.blink-avatar {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blink-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* Ensure buttons are responsive */
.blink-action {
    transition: all 0.15s ease;
}

/* Remove problematic animations */
* {
    animation-play-state: running !important;
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */

/* Hardware acceleration for smooth scrolling */
.content-area {
    -webkit-overflow-scrolling: touch;
    overflow-y: auto;
}

/* Optimize hover effects */
.blink-card:hover {
    transform: translateZ(0);
}

/* Loading skeleton for better perceived performance */
.skeleton-loader {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    animation: pulse-loading 1.5s ease-in-out infinite;
}

.skeleton-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.skeleton-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-secondary);
}

.skeleton-info {
    flex: 1;
}

.skeleton-username {
    width: 120px;
    height: 20px;
    background: var(--bg-secondary);
    border-radius: 4px;
    margin-bottom: 8px;
}

.skeleton-time {
    width: 80px;
    height: 16px;
    background: var(--bg-secondary);
    border-radius: 4px;
}

.skeleton-content {
    width: 100%;
    height: 60px;
    background: var(--bg-secondary);
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    /* Reduce animations on mobile for better performance */
    .blink-card {
        animation: none;
    }

    /* Simpler hover states on mobile */
    .blink-card:hover {
        border-color: var(--border-color);
        box-shadow: none;
    }

    /* Optimize image sizes for mobile */
    .blink-media.image-container {
        max-height: 300px;
    }

    /* Adjust media viewer for mobile */
    .media-viewer-close {
        top: 10px;
        right: 10px;
        background: rgba(0, 0, 0, 0.7);
    }
}

dw
/* Video viewer styles */
.media-viewer-video {
    max-width: 90vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    border: 2px solid var(--accent-magenta);
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(255, 0, 255, 0.5);
}

/* Ensure videos are also clickable */
.blink-media video {
    cursor: pointer;
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
}

/* Fix z-index issues */
.media-viewer-overlay {
    z-index: 9999; /* Make sure it's on top of everything */
}

/* Better close button positioning for both images and videos */
.media-viewer-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.media-viewer-close {
    position: fixed; /* Changed from absolute to fixed */
    top: 20px;
    right: 20px;
    z-index: 10000;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .media-viewer-video {
        max-width: 95vw;
        max-height: 70vh;
    }

    .media-viewer-image {
        max-width: 95vw;
    }
}

/* Video viewer styles */
.media-viewer-video {
    max-width: 90vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    border: 2px solid var(--accent-magenta);
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(255, 0, 255, 0.5);
}

/* Ensure videos are also clickable */
.blink-media video {
    cursor: pointer;
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
}

/* Fix z-index issues */
.media-viewer-overlay {
    z-index: 9999; /* Make sure it's on top of everything */
}

/* Better close button positioning for both images and videos */
.media-viewer-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.media-viewer-close {
    position: fixed; /* Changed from absolute to fixed */
    top: 20px;
    right: 20px;
    z-index: 10000;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .media-viewer-video {
        max-width: 95vw;
        max-height: 70vh;
    }

    .media-viewer-image {
        max-width: 95vw;
    }
}