/* Spaghetti Labs Hall of Fame - Matrix Theme Stylesheet */

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

body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    color: #00ff41;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Authentication Header */
.auth-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    border-bottom: 1px solid #00ff41;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0.75rem 0;
}

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

.auth-status {
    font-size: 0.9rem;
    color: #00ff41;
}

.auth-loading {
    opacity: 0.7;
    animation: pulse 1.5s infinite;
}

.auth-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-username {
    color: #00ff41;
    font-weight: bold;
}

.auth-role {
    background: rgba(0, 255, 65, 0.2);
    color: #00ff41;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    border: 1px solid #00ff41;
}

.auth-role.admin {
    background: rgba(255, 68, 68, 0.2);
    color: #ff4444;
    border-color: #ff4444;
}

.auth-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.auth-link {
    color: #00ff41;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid #00ff41;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: rgba(0, 255, 65, 0.1);
}

.auth-link:hover {
    background: rgba(0, 255, 65, 0.2);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
    transform: translateY(-1px);
}

.auth-link.admin {
    color: #ff4444;
    border-color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
}

.auth-link.admin:hover {
    background: rgba(255, 68, 68, 0.2);
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.3);
}

.auth-link.logout {
    background: rgba(255, 68, 68, 0.1);
    border-color: #ff6666;
    color: #ff6666;
    font-family: 'Courier New', Courier, monospace;
}

.auth-link.logout:hover {
    background: rgba(255, 68, 68, 0.2);
}

/* Matrix Background */
.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.1;
}

/* Layout */
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 6.5rem 2rem 2rem 2rem;
    position: relative;
    z-index: 1;
}

@media (max-width: 1024px) {
    .container {
        padding: 6.5rem 1.5rem 2rem 1.5rem;
    }
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 3rem;
    animation: glow 2s ease-in-out infinite alternate;
}

.logo {
    font-size: 3.5rem;
    font-weight: bold;
    text-shadow: 0 0 20px #00ff41, 0 0 40px #00ff41, 0 0 60px #00ff41;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
    color: #00ff41;
}

.subtitle {
    font-size: 1.2rem;
    color: #00cc33;
    text-shadow: 0 0 10px #00cc33;
    opacity: 0;
    animation: fadeIn 2s 1s forwards;
}

/* Hall of Fame specific styles */
.hall-controls {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #00ff41;
    border-radius: 10px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.3);
    position: relative;
    overflow: hidden;
}

.hall-controls::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00ff41, #00cc33, #009922, #00cc33, #00ff41);
    z-index: -1;
    border-radius: 10px;
    animation: borderGlow 3s linear infinite;
}

.controls-section h3 {
    color: #00ff41;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 15px #00ff41;
}

.filter-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: end;
}

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

.form-group label {
    color: #00cc33;
    font-size: 0.9rem;
}

.form-select, .form-input {
    background: rgba(0, 20, 0, 0.8);
    border: 1px solid #00cc33;
    border-radius: 5px;
    padding: 0.5rem;
    color: #00ff41;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
}

.form-select:focus, .form-input:focus {
    outline: none;
    border-color: #00ff41;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

.btn {
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid #00ff41;
    color: #00ff41;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    background: rgba(0, 255, 65, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.4);
    transform: translateY(-2px);
}

.btn-primary {
    background: rgba(0, 255, 65, 0.2);
    border-color: #00ff41;
}

.btn-danger {
    background: rgba(255, 68, 68, 0.1);
    border-color: #ff4444;
    color: #ff4444;
}

.btn-danger:hover {
    background: rgba(255, 68, 68, 0.2);
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.4);
}

/* Upload Section */
.upload-section {
    background: rgba(0, 20, 0, 0.6);
    border: 1px solid #00cc33;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.upload-area {
    border: 2px dashed #00cc33;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    background: rgba(0, 40, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area.drag-over {
    border-color: #00ff41;
    background: rgba(0, 255, 65, 0.1);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

.upload-text {
    color: #00cc33;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.file-input {
    display: none;
}

.file-preview {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(0, 60, 0, 0.5);
    border-radius: 5px;
    border: 1px solid #00cc33;
}

.preview-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: rgba(0, 40, 0, 0.7);
    border-radius: 4px;
}

.preview-thumbnail {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #00cc33;
}

.preview-info {
    flex: 1;
    color: #00cc33;
}

.preview-name {
    color: #00ff41;
    font-weight: bold;
}

.preview-size {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Gallery Grid */
.gallery {
    margin-top: 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.gallery-item {
    background: rgba(0, 20, 0, 0.8);
    border: 1px solid #00cc33;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    height: 300px; /* Fixed height for consistent layout */
}

.gallery-item:hover {
    border-color: #00ff41;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
    transform: translateY(-5px);
}

.gallery-thumbnail {
    width: 100%;
    height: 100%; /* Take full height of container */
    object-fit: cover;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-thumbnail:hover {
    opacity: 0.9;
}

.gallery-video-preview {
    width: 100%;
    height: 100%; /* Take full height of container */
    object-fit: cover;
    cursor: pointer;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.gallery-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    backdrop-filter: blur(5px);
    transform: translateY(100%);
    transition: all 0.3s ease;
    border-top: 1px solid #00ff41;
    z-index: 3; /* Above video preview */
}

.gallery-item:hover .gallery-info {
    transform: translateY(0);
}

.gallery-title {
    color: #00ff41;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 5px #00ff41;
    opacity: 1; /* Always visible when info panel is shown */
    transform: translateY(0);
    transition: all 0.3s ease;
}

.gallery-description {
    color: #00cc33;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    opacity: 1; /* Always visible when info panel is shown */
    transform: translateY(0);
    transition: all 0.3s ease;
}

.gallery-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    color: #00aa22;
    font-size: 0.8rem;
}

.copy-url-btn {
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid #00ff41;
    color: #00ff41;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.copy-url-btn:hover {
    background: rgba(0, 255, 65, 0.2);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
    transform: translateY(-1px);
}

.gallery-user,
.gallery-date {
    opacity: 1; /* Always visible when info panel is shown */
    transform: translateY(0);
    transition: all 0.3s ease;
}

.gallery-tag {
    background: rgba(0, 255, 65, 0.9);
    color: #000;
    padding: 0.3rem 0.6rem;
    border-radius: 3px;
    border: 1px solid #00ff41;
    font-size: 0.7rem;
    font-weight: bold;
    /* Tag stays always visible - positioned over the image */
    opacity: 1;
    transition: all 0.3s ease;
    z-index: 2;
}

.gallery-tags {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    flex-direction: column-reverse;
    gap: 0.3rem;
    z-index: 2;
    align-items: end;
}

.file-type-tag {
    background: #00000091 !important;
    color: #00ff41 !important;
    border-color: #00ff41 !important;
}

.gallery-actions {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.gallery-item:hover .gallery-actions {
    opacity: 1;
}

.action-btn {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #00cc33;
    color: #00ff41;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: rgba(0, 255, 65, 0.2);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

.action-btn.delete {
    border-color: #ff4444;
    color: #ff4444;
}

.action-btn.delete:hover {
    background: rgba(255, 68, 68, 0.2);
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.3);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
    border: 2px solid #00ff41;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0, 255, 65, 0.5);
}

.modal-media {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #00ff41;
    color: #00ff41;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 68, 68, 0.8);
    border-color: #ff4444;
    color: #ff4444;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}

.pagination-btn {
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid #00ff41;
    color: #00ff41;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
    text-decoration: none;
}

.pagination-btn:hover:not(.disabled) {
    background: rgba(0, 255, 65, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.4);
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn.active {
    background: rgba(0, 255, 65, 0.3);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.pagination-info {
    color: #00cc33;
    font-size: 0.9rem;
}

/* Loading states */
.loading {
    text-align: center;
    color: #00cc33;
    padding: 2rem;
    font-size: 1.1rem;
}

.loading::after {
    content: "...";
    animation: dots 1.5s infinite;
}

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

@keyframes glow {
    0% { text-shadow: 0 0 20px #00ff41, 0 0 40px #00ff41, 0 0 60px #00ff41; }
    100% { text-shadow: 0 0 10px #00ff41, 0 0 20px #00ff41, 0 0 30px #00ff41; }
}

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

@keyframes borderGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes dots {
    0%, 20% { content: "."; }
    40% { content: ".."; }
    60%, 100% { content: "..."; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo { font-size: 2.5rem; }
    .container { padding: 1rem; padding-top: 6rem; }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
    .filter-controls { flex-direction: column; align-items: stretch; }
    
    /* Auth header responsive */
    .auth-content {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0 1rem;
    }
    
    .auth-actions {
        gap: 0.5rem;
    }
    
    .auth-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

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

/* No entries state */
.no-entries {
    text-align: center;
    color: #00cc33;
    padding: 3rem;
    font-size: 1.1rem;
    background: rgba(0, 20, 0, 0.5);
    border: 1px dashed #00cc33;
    border-radius: 8px;
    margin: 2rem 0;
}

/* Toast notifications */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: rgba(0, 20, 0, 0.95);
    border: 1px solid #00ff41;
    border-radius: 5px;
    padding: 15px 20px;
    color: #00ff41;
    font-family: 'Courier New', monospace;
    min-width: 250px;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
    transform: translateX(100%);
    animation: slideIn 0.3s ease forwards;
}

.toast.error {
    border-color: #ff4444;
    color: #ff4444;
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.3);
}

.toast.success {
    border-color: #00ff41;
    color: #00ff41;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

.toast.warning {
    border-color: #ffaa00;
    color: #ffaa00;
    box-shadow: 0 0 20px rgba(255, 170, 0, 0.3);
}

@keyframes slideIn {
    to {
        transform: translateX(0);
    }
}

.upload-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.upload-card h2 {
    color: #1f2937;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

.form-group label {
    font-weight: 500;
    color: #00cc33;
}

.file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed #d1d5db;
    border-radius: 0.5rem;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.2s;
    background: #f9fafb;
}

.file-label:hover {
    border-color: #6366f1;
    background: #f0f4ff;
}

.file-label.file-selected {
    border-color: #10b981;
    background: #ecfdf5;
    border-style: solid;
}

.file-label.file-selected:hover {
    border-color: #059669;
    background: #d1fae5;
}

.file-label.drag-over {
    border-color: #3b82f6;
    background: #dbeafe;
    transform: scale(1.02);
}

.file-label .drag-text {
    margin-top: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.file-label.drag-over .drag-text {
    color: #3b82f6;
    font-weight: 600;
}

.file-label i {
    font-size: 2rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.file-label span {
    font-weight: 500;
    color: #374151;
}

.file-label small {
    color: #6b7280;
    text-align: center;
    margin-top: 0.5rem;
}

#file-input {
    display: none;
}

.form-group input,
.form-group textarea {
    padding: 0.5rem;
    border: 1px solid #00ff41;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #00cc33;
    font-size: 0.9rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00ff41;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.submit-btn {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Upload progress */
.upload-progress {
    text-align: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    border: 1px solid #00ff41;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #1a1a1a;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid #333;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff41, #33ff66);
    width: 0%;
    transition: width 0.3s;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.progress-text {
    color: #00ff41;
    font-weight: 500;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
}

/* Filter section */
.filter-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 1rem;
}

.filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.view-toggle {
    display: flex;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.25rem;
}

.view-btn {
    background: transparent;
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.2s;
}

.view-btn.active {
    background: rgba(255, 255, 255, 0.2);
}

/* Hall grid */
.hall-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.hall-grid.list-view {
    grid-template-columns: 1fr;
    gap: 1rem;
}

.hall-item {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
}

.hall-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.hall-grid.list-view .hall-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    gap: 1rem;
}

.media-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.hall-grid.list-view .media-container {
    width: 150px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 0.5rem;
}

.media-thumbnail,
.media-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.hall-item:hover .media-thumbnail,
.hall-item:hover .media-image {
    transform: scale(1.05);
}

.media-type-indicator {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.hall-item-content {
    padding: 1.5rem;
}

.hall-grid.list-view .hall-item-content {
    padding: 0;
    flex: 1;
}

.hall-item-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
    line-height: 1.4;
}

.hall-item-description {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hall-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #6b7280;
}

.hall-item-user {
    font-weight: 500;
    color: #374151;
}

.hall-item-date {
    color: #9ca3af;
}

.game-tag {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.9rem;
    font-weight: 500;
}

#game-tag, #filter-tag {
    width: 400px;
}

@media (max-width: 768px) {
    #game-tag, #filter-tag {
        width: 100%;
    }
}



/* Loading and empty states */
.loading,
.empty-state {
    text-align: center;
    padding: 3rem;
    color: white;
}

.loading i,
.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    opacity: 0.8;
}

.load-more-section {
    text-align: center;
    padding: 2rem;
}

.load-more-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.load-more-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 1rem;
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
    display: flex;
    flex-direction: column;
    z-index: 1001;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1002;
    transition: background-color 0.2s;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.7);
}

.modal-media {
    position: relative;
    max-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    border-radius: 1rem 1rem 0 0;
    overflow: hidden;
}

.modal-media img,
.modal-media video {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

.modal-info {
    padding: 2rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.modal-description {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.modal-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.modal-user,
.modal-date {
    color: #6b7280;
    font-size: 0.9rem;
}

.modal-user {
    font-weight: 500;
    color: #374151;
}

.modal-actions {
    display: flex;
    gap: 1rem;
}

.delete-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

/* Toast notifications */
.toast-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background: white;
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #10b981;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.error {
    border-left-color: #ef4444;
}

.toast.warning {
    border-left-color: #f59e0b;
}

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

.toast.success .toast-icon {
    color: #10b981;
}

.toast.error .toast-icon {
    color: #ef4444;
}

.toast.warning .toast-icon {
    color: #f59e0b;
}

.toast-message {
    flex: 1;
    font-weight: 500;
    color: #1f2937;
}

/* Responsive design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }

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

    .filter-section {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .filters {
        justify-content: center;
    }

    .view-toggle {
        align-self: center;
    }

    .hall-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .modal-content {
        max-width: 95vw;
        max-height: 95vh;
        margin: 1rem;
    }

    .modal-info {
        padding: 1rem;
    }

    .modal-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .toast-container {
        left: 1rem;
        right: 1rem;
        top: 1rem;
    }

    .toast {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }

    .upload-card {
        padding: 1rem;
    }

    .file-label {
        padding: 1rem;
    }

    .file-label i {
        font-size: 1.5rem;
    }
}
