/* ============================================
   Media Gallery - Complete CSS
   Turquoise Theme (#1ABC9C)
   Responsive & Mobile Optimized
   ============================================ */

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1abc9c;
    --primary-dark: #16a085;
    --primary-light: #a3e4d7;
    --secondary-color: #f8f9fa;
    --accent-color: #2ecc71;
    --text-color: #2c3e50;
    --text-light: #7f8c8d;
    --light-gray: #ecf0f1;
    --dark-gray: #34495e;
    --danger-color: #e74c3c;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --border-radius: 12px;
    --border-radius-sm: 8px;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--secondary-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--text-color);
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    text-align: center;
    border: 2px solid transparent;
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* ===== NAVIGATION ===== */
.navbar {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    font-size: 1.3rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a i {
    font-size: 1.1rem;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
    padding: 0.5rem;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.menu-toggle:hover {
    background-color: var(--light-gray);
}

/* ===== HERO SECTION WITH VIDEO ===== */
.hero {
    position: relative;
    height: 80vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: white;
    text-align: center;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 188, 156, 0.8), rgba(44, 62, 80, 0.9));
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2.5rem 0;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.2rem 1.8rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat i {
    font-size: 2rem;
    color: var(--primary-light);
}

.stat h3 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
    color: white;
}

.stat p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.video-controls {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.video-control-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.video-control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* ===== UPLOAD SECTION ===== */
.upload-section {
    padding: 5rem 0;
    background-color: white;
    width: 100%;
}

.upload-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Admin Login */
.admin-login {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    border: 2px dashed var(--light-gray);
    margin-bottom: 2rem;
}

.login-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.login-header i {
    font-size: 2rem;
    color: var(--primary-color);
}

.login-header h3 {
    margin: 0;
    color: var(--dark-gray);
}

.admin-login p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.login-form {
    display: flex;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.password-input {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    transition: var(--transition);
}

.password-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 188, 156, 0.1);
}

/* Media Type Selector */
.media-type-selector {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.media-type-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--light-gray);
    background: white;
    color: var(--text-color);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.media-type-btn.active,
.media-type-btn:hover {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: white;
}

/* Upload Area */
.upload-area {
    border: 3px dashed var(--light-gray);
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 2rem;
    background: #f8f9fa;
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: var(--primary-color);
    background-color: #f0f9f7;
}

.upload-icon-container {
    margin-bottom: 1.5rem;
}

.upload-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
}

.upload-area h3 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.upload-area p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.file-info {
    margin: 1.5rem 0;
}

.file-info p {
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-light);
}

.file-info i {
    color: var(--primary-color);
}

#fileInput {
    display: none;
}

/* Category Selection */
.category-selection {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.category-selection h4 {
    margin-bottom: 1rem;
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.category-option {
    cursor: pointer;
}

.category-option input[type="radio"] {
    display: none;
}

.category-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    background: #e9ecef;
    color: #495057;
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid transparent;
}

.category-option input[type="radio"]:checked + .category-tag {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.category-tag:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Category Colors */
.category-tag.nature {
    background: #d4edda;
    color: #155724;
}

.category-tag.people {
    background: #d1ecf1;
    color: #0c5460;
}

.category-tag.urban {
    background: #d6d8db;
    color: #383d41;
}

.category-tag.travel {
    background: #fff3cd;
    color: #856404;
}

.category-tag.other {
    background: #e2e3e5;
    color: #383d41;
}

/* Upload Progress */
.upload-progress {
    display: none;
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-top: 2rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-weight: 500;
    color: var(--text-color);
}

.progress-container {
    height: 10px;
    background: var(--light-gray);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 5px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ===== GALLERY SECTION ===== */
.gallery-section {
    padding: 5rem 0;
    background-color: var(--secondary-color);
    width: 100%;
}

.filter-controls {
    margin-bottom: 3rem;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.filter-btn {
    padding: 0.7rem 1.5rem;
    border: 2px solid var(--light-gray);
    background: white;
    color: var(--text-color);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: white;
}

/* Gallery Grid */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.media-item {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.media-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.media-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.media-thumbnail img,
.media-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.media-item:hover .media-thumbnail img,
.media-item:hover .media-thumbnail video {
    transform: scale(1.05);
}

.media-overlay i {
    color: white;
    font-size: 2rem;
    background: rgba(26, 188, 156, 0.8);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-thumbnail {
    position: relative;
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 500;
}

.media-info {
    padding: 1.2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.media-info h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.4;
}

.media-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.media-category {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.media-category.nature {
    background: #d4edda;
    color: #155724;
}

.media-category.people {
    background: #d1ecf1;
    color: #0c5460;
}

.media-category.urban {
    background: #d6d8db;
    color: #383d41;
}

.media-category.travel {
    background: #fff3cd;
    color: #856404;
}

.media-category.other {
    background: #e2e3e5;
    color: #383d41;
}

.media-size {
    color: var(--text-light);
    font-size: 0.8rem;
}

/* Empty Gallery State */
.empty-gallery {
    text-align: center;
    padding: 4rem 2rem;
    grid-column: 1 / -1;
}

.empty-gallery i {
    font-size: 4rem;
    color: var(--light-gray);
    margin-bottom: 1.5rem;
}

.empty-gallery h3 {
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
}

.empty-gallery p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.no-results {
    text-align: center;
    padding: 3rem;
    grid-column: 1 / -1;
}

.no-results i {
    font-size: 3rem;
    color: var(--light-gray);
    margin-bottom: 1rem;
}

.no-results h3 {
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
}

.no-results p {
    color: var(--text-light);
}

/* ===== ABOUT SECTION ===== */
.about-section {
    padding: 5rem 0;
    background-color: white;
    width: 100%;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: var(--border-radius-sm);
    text-align: center;
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.feature i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature h4 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.feature p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

.about-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    height: auto;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    border-radius: var(--border-radius);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: var(--transition);
}

.close-modal:hover {
    background-color: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.modal-media {
    width: 100%;
    max-height: 60vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.modal-image {
    max-width: 100%;
    max-height: 60vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.modal-video {
    width: 100%;
    max-height: 60vh;
    background: #000;
}

.modal-info {
    padding: 1.5rem;
}

.modal-info h3 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.modal-info p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* ===== NOTIFICATIONS ===== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 3000;
    animation: slideInRight 0.3s ease;
    max-width: 400px;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.notification.success {
    border-left: 4px solid var(--success-color);
}

.notification.error {
    border-left: 4px solid var(--danger-color);
}

.notification.warning {
    border-left: 4px solid var(--warning-color);
}

.notification.info {
    border-left: 4px solid var(--primary-color);
}

.notification i {
    font-size: 1.2rem;
}

.notification.success i {
    color: var(--success-color);
}

.notification.error i    color: var(--danger-color);
}

.notification.warning i {
    color: var(--warning-color);
}

.notification.info i {
    color: var(--primary-color);
}

.notification span {
    flex: 1;
    color: var(--text-color);
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.2rem;
    border-radius: 3px;
    transition: var(--transition);
}

.notification-close:hover {
    color: var(--text-color);
    background: var(--light-gray);
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--dark-gray);
    color: white;
    padding: 3rem 0;
    margin-top: auto;
    width: 100%;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    max-width: 400px;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-copyright p {
    margin: 0.5rem 0;
}

.footer-copyright i {
    color: #e74c3c;
    margin: 0 0.2rem;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet (768px and below) */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero {
        height: 70vh;
        min-height: 500px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .stat {
        padding: 1rem 1.5rem;
    }
    
    .stat h3 {
        font-size: 1.5rem;
    }
    
    /* Navigation */
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow);
        gap: 0;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        padding: 0.8rem 1rem;
        border-radius: var(--border-radius-sm);
    }
    
    .nav-menu a:hover {
        background-color: var(--light-gray);
    }
    
    .menu-toggle {
        display: block;
    }
    
    /* Upload Area */
    .upload-area {
        padding: 2rem 1rem;
    }
    
    .login-form {
        flex-direction: column;
    }
    
    .password-input {
        width: 100%;
    }
    
    /* Gallery */
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    /* About Section */
    .about-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .about-text,
    .about-image {
        min-width: 100%;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    /* Video Controls */
    .video-controls {
        bottom: 1rem;
        right: 1rem;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero {
        height: 60vh;
        min-height: 400px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
    }
    
    /* Gallery */
    .gallery {
        grid-template-columns: 1fr;
    }
    
    .filter-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .media-type-selector {
        flex-direction: column;
    }
    
    .media-type-btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Modal */
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions .btn {
        width: 100%;
    }
    
    /* Footer */
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Small Mobile (360px and below) */
@media (max-width: 360px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .hero-content h1 {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .media-thumbnail {
        height: 180px;
    }
    
    .modal-content {
        padding: 0.5rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }
    
    .navbar {
        background-color: #2d2d2d;
    }
    
    .nav-menu a {
        color: #e0e0e0;
    }
    
    .upload-section,
    .about-section {
        background-color: #2d2d2d;
    }
    
    .media-item,
    .admin-login,
    .upload-progress,
    .feature {
        background-color: #3d3d3d;
    }
    
    .upload-area {
        background-color: #2d2d2d;
        border-color: #4d4d4d;
    }
    
    .category-selection {
        background-color: #2d2d2d;
    }
    
    .category-tag {
        background-color: #4d4d4d;
        color: #e0e0e0;
    }
    
    .modal-content {
        background-color: #2d2d2d;
        color: #e0e0e0;
    }
    
    .modal-info h3 {
        color: #e0e0e0;
    }
    
    .modal-info p {
        color: #b0b0b0;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero,
    .upload-section,
    .video-controls,
    .modal,
    footer {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .gallery {
        display: block !important;
    }
    
    .media-item {
        break-inside: avoid;
        margin-bottom: 20px;
    }
}


/* بهبود upload area */
.upload-area.drag-over {
    border-color: var(--primary-color);
    background-color: rgba(26, 188, 156, 0.1);
    transform: scale(1.02);
}

.upload-area.drag-over .upload-icon {
    animation: bounce 0.5s infinite alternate;
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-10px); }
}

/* selected files show */
.selected-files {
    margin-top: 1rem;
    max-height: 200px;
    overflow-y: auto;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 5px;
    margin-bottom: 0.5rem;
}

.file-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-size {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-left: 1rem;
}

/* استایل برای video thumbnail */
.video-thumbnail {
    position: relative;
    background: linear-gradient(135deg, #2c3e50, #4a6572);
}

.video-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.video-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: var(--transition);
}

.video-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(26, 188, 156, 0.9);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 2;
}

/* آیکون play بزرگ در وسط */
.video-thumbnail .media-overlay i {
    font-size: 3rem;
    background: rgba(26, 188, 156, 0.9);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.video-thumbnail:hover .media-overlay i {
    transform: scale(1.1);
    background: rgba(26, 188, 156, 1);
}

/* اگر ویدیو thumbnail ندارد، آیکون نمایش بده */
.video-thumbnail.no-thumbnail::after {
    content: '\\f03d'; /* آیکون فیلم */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.5);
    z-index: 1;
}