/* Gallery Specific Styles */
.gallery-header { text-align: center; margin-bottom: 50px; }
.gallery-header h1 { font-size: 3rem; color: var(--primary-color); font-weight: 800; margin-bottom: 15px; }
.gallery-header p { font-size: 1.2rem; color: #64748b; }

.stats { background: var(--card-bg); padding: 30px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); margin-bottom: 50px; border: 1px solid var(--glass-border); }
.stats h3 { color: var(--primary-color); margin-bottom: 25px; text-align: center; font-size: 1.5rem; font-weight: 700; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 25px; }
.stat-item { padding: 25px; background: rgba(59, 130, 246, 0.05); border-radius: 16px; text-align: center; border: 1px solid rgba(59, 130, 246, 0.1); transition: all var(--transition-speed); }
.stat-item:hover { transform: translateY(-5px); background: rgba(59, 130, 246, 0.1); }
.stat-number { font-size: 2.5rem; font-weight: 800; color: var(--secondary-color); display: block; margin-bottom: 5px; }
.stat-label { color: #64748b; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }

.upload-section { background: var(--card-bg); padding: 40px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); margin-bottom: 50px; text-align: center; border: 1px solid var(--glass-border); }
.upload-btn { background: var(--secondary-color); color: white; border: none; padding: 16px 36px; border-radius: 50px; font-size: 1.1rem; font-weight: 600; cursor: pointer; transition: all var(--transition-speed); box-shadow: 0 10px 20px rgba(59, 130, 246, 0.4); }
.upload-btn:hover { background: #2563eb; transform: translateY(-3px); box-shadow: 0 15px 25px rgba(59, 130, 246, 0.5); }
.upload-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.filters { background: var(--card-bg); padding: 40px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); margin-bottom: 50px; border: 1px solid var(--glass-border); }
.filter-section { margin-bottom: 30px; }
.filter-section:last-child { margin-bottom: 0; }
.filter-label { display: block; color: var(--primary-color); font-weight: 700; font-size: 1.2rem; margin-bottom: 20px; text-align: center; }
.filter-buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.filter-btn { background: white; color: var(--text-color); border: 1px solid #e2e8f0; padding: 12px 24px; border-radius: 50px; cursor: pointer; font-weight: 600; transition: all var(--transition-speed); font-size: 0.95rem; box-shadow: 0 4px 6px rgba(0,0,0,0.02); }
.filter-btn:hover, .filter-btn.active { background: var(--secondary-color); color: white; border-color: var(--secondary-color); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3); }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 35px; margin-bottom: 50px; }
.gallery-item { background: white; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.08); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); cursor: pointer; position: relative; }
.gallery-item:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.15); }
.gallery-item img { width: 100%; height: 280px; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item video { width: 100%; height: 280px; object-fit: cover; position: absolute; top: 0; left: 0; opacity: 0; transition: opacity 0.4s ease; pointer-events: none; }
.gallery-item:hover video { opacity: 1; }
.video-overlay { position: absolute; top: 140px; left: 50%; transform: translate(-50%, -50%); background: rgba(15, 23, 42, 0.8); color: white; border-radius: 50%; width: 70px; height: 70px; display: flex; align-items: center; justify-content: center; font-size: 24px; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); pointer-events: none; backdrop-filter: blur(5px); padding-left: 5px; }
.gallery-item:hover .video-overlay { background: var(--secondary-color); transform: translate(-50%, -50%) scale(1.15); box-shadow: 0 10px 20px rgba(59, 130, 246, 0.5); }
.video-duration { position: absolute; bottom: 120px; right: 20px; background: rgba(0,0,0,0.7); color: white; padding: 6px 12px; border-radius: 30px; font-size: 0.85rem; font-weight: 700; backdrop-filter: blur(5px); }

.gallery-info { padding: 25px; background: white; position: relative; z-index: 2; border-top: 1px solid #f1f5f9; }
.gallery-title { font-size: 1.2rem; font-weight: 700; color: var(--primary-color); margin-bottom: 8px; }
.gallery-description { color: #64748b; font-size: 0.95rem; }

.pagination { display: flex; justify-content: center; align-items: center; gap: 15px; margin-top: 60px; }
.page-btn { background: white; color: var(--primary-color); border: 2px solid #e2e8f0; padding: 12px 24px; text-decoration: none; border-radius: 50px; font-weight: 600; transition: all var(--transition-speed); box-shadow: 0 4px 6px rgba(0,0,0,0.02); }
.page-btn:hover, .page-btn.active { background: var(--primary-color); color: white; border-color: var(--primary-color); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(15, 23, 42, 0.2); }
.page-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.lightbox, .video-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(10px); z-index: 1001; justify-content: center; align-items: center; }
.lightbox-content, .video-modal-content { max-width: 90%; max-height: 90%; position: relative; display: flex; justify-content: center; align-items: center; }
.lightbox img, .video-modal video { max-width: 100%; max-height: 90vh; border-radius: 12px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); object-fit: contain; }
.lightbox-close, .video-modal-close { position: absolute; top: -50px; right: -50px; color: white; font-size: 40px; cursor: pointer; background: none; border: none; transition: all var(--transition-speed); opacity: 0.7; }
.lightbox-close:hover, .video-modal-close:hover { opacity: 1; transform: scale(1.1); color: var(--accent-color); }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.1); color: white; border: none; width: 60px; height: 60px; border-radius: 50%; font-size: 24px; cursor: pointer; transition: all var(--transition-speed); backdrop-filter: blur(5px); display: flex; align-items: center; justify-content: center; opacity: 0.7; }
.lightbox-nav:hover { background: rgba(255,255,255,0.2); opacity: 1; transform: translateY(-50%) scale(1.1); }
.lightbox-prev { left: -80px; }
.lightbox-next { right: -80px; }
.no-results { text-align: center; padding: 80px 20px; background: white; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.no-results h3 { color: var(--primary-color); font-size: 1.8rem; margin-bottom: 15px; }
.no-results p { color: #64748b; font-size: 1.1rem; }
