/* Base styles - similar to movie_night_manager.html */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-color: #e2e8f0;
    --border-color: #334155;
    --hover-color: #475569;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--bg-color) 0%, #1a1f3a 100%);
    color: var(--text-color);
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    width: 100%;
    max-width: 100vw;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    width: 100%;
    box-sizing: border-box;
}

header {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    position: relative;
    z-index: 10;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
    position: relative;
    z-index: 10;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    position: relative;
    z-index: 10;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #7c3aed;
    transform: translateY(-2px);
}

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

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

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

.card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    position: relative;
    z-index: 10;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 14px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    z-index: 2000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    font-size: 14px;
}

.notification.success {
    background: var(--success-color);
    color: white;
}

.notification.error {
    background: var(--danger-color);
    color: white;
}

.notification.info {
    background: var(--primary-color);
    color: white;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
    position: relative;
    z-index: 10;
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger-color);
    color: white;
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    animation: pulse 2s infinite;
}

.admin-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger-color);
    color: white;
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    animation: pulse 2s infinite;
}

#adminLink .btn {
    position: relative;
}

/* Notification badge on Discussions button */
a[href="/discussions.html"].btn {
    position: relative;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.movie-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    cursor: pointer;
    position: relative;
    z-index: 10;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--primary-color);
}

.movie-poster {
    width: 100%;
    height: 400px;
    object-fit: cover;
    background: var(--bg-color);
}

.movie-info {
    padding: 20px;
}

.movie-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color);
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 10px;
}

.status-pending {
    background: var(--warning-color);
    color: white;
}

.status-approved {
    background: var(--success-color);
    color: white;
}

.status-rejected {
    background: var(--danger-color);
    color: white;
}

.hidden {
    display: none;
}

/* Profile Popup Styles */
.profile-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
    visibility: hidden;
    opacity: 0;
}

.profile-popup-overlay.show {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

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

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.profile-popup-content {
    background: var(--card-bg);
    border-radius: 15px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

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

.profile-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 32px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 1;
}

.profile-popup-close:hover {
    background: var(--hover-color);
    transform: rotate(90deg);
}

.profile-popup-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    gap: 20px;
}

.profile-popup-body {
    padding: 30px;
}

.profile-popup-header {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.profile-popup-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    font-weight: bold;
    border: 3px solid var(--border-color);
    flex-shrink: 0;
}

.profile-popup-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.profile-popup-info {
    flex: 1;
    min-width: 0;
}

.profile-popup-username {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 8px;
    word-break: break-word;
}

.profile-popup-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.profile-popup-badge.badge-admin {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.profile-popup-badge.badge-member {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.profile-popup-details {
    margin-bottom: 25px;
}

.profile-popup-bio {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 15px;
    font-style: italic;
    padding: 15px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.profile-popup-detail-item {
    color: var(--text-color);
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.6;
}

.profile-popup-detail-item .detail-label {
    font-weight: 600;
    color: #94a3b8;
    margin-right: 8px;
}

.profile-popup-detail-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.profile-popup-detail-item a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.profile-popup-empty {
    color: #94a3b8;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

.profile-popup-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 2px solid var(--border-color);
}

.profile-popup-error {
    padding: 40px;
    text-align: center;
    color: var(--danger-color);
}

.profile-popup-error p {
    margin-bottom: 20px;
}

/* Clickable user elements */
.clickable-user {
    cursor: pointer;
    transition: all 0.2s ease;
}

.clickable-user:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.comment-username.clickable-user:hover,
.comment-avatar.clickable-user:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Background System Styles */
.shapes-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Background Styles */
.bg-discord {
    background: #36393f;
}

.bg-discord .shape {
    background: rgba(79, 84, 92, 0.4);
    border-radius: 50%;
    opacity: 1;
}

.bg-gradient-sunset {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-gradient-ocean {
    background: linear-gradient(120deg, #89f7fe 0%, #66a6ff 100%);
}

.bg-gradient-fire {
    background: linear-gradient(135deg, #ff0000 0%, #ff4500 25%, #ff6347 50%, #8b0000 100%);
}

.bg-gradient-forest {
    background: linear-gradient(135deg, #0ba360 0%, #3cba92 100%);
}

.bg-dots {
    background-color: #2c3e50;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
}

.bg-grid {
    background-color: #1a1a2e;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
}

.bg-waves {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow-x: hidden;
}

.bg-waves::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: calc(100% + 1440px);
    height: 320px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='rgba(255,255,255,0.1)' d='M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") repeat-x;
    background-size: 1440px 320px;
    background-position: 0 0;
    animation: wave 15s linear infinite;
}

@keyframes wave {
    0% { transform: translateX(0); }
    100% { transform: translateX(-1440px); }
}

.bg-particles {
    background: radial-gradient(circle at 50% 50%, #1e3c72 0%, #2a5298 50%, #1e3c72 100%);
}

.bg-particles .particle {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0;
    animation: float 8s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 0.7; }
    90% { opacity: 0.7; }
    100% { transform: translateY(-100vh) translateX(50px); opacity: 0; }
}

.bg-geometric {
    background: #0f0c29;
    background: linear-gradient(to right, #24243e, #302b63, #0f0c29);
    overflow-x: hidden;
}

.bg-geometric .geo-shape {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.1);
    opacity: 1;
    animation: rotate 20s linear infinite;
}

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

.bg-aurora {
    background: #000;
    position: relative;
    overflow: hidden;
    overflow-x: hidden;
}

.aurora-light {
    position: fixed;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-aurora .aurora-light {
    opacity: 1;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(0, 255, 200, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 30%, rgba(100, 0, 255, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(255, 0, 150, 0.3) 0%, transparent 50%);
    animation: aurora 10s ease-in-out infinite;
}

@keyframes aurora {
    0%, 100% { 
        filter: hue-rotate(0deg);
        transform: scale(1);
    }
    50% { 
        filter: hue-rotate(60deg);
        transform: scale(1.05);
    }
}

.bg-minimal {
    background: #f5f5f5;
}

.bg-dark {
    background: #0a0a0a;
}

