/* Reset and base styles */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; background-color: #1a1a1a; color: #ffffff; line-height: 1.6; } /* Header */ .header { background-color: #2d2d2d; padding: 1rem; border-bottom: 1px solid #404040; position: sticky; top: 0; z-index: 100; } .header h1 { font-size: 1.5rem; margin-bottom: 1rem; color: #ff6b35; } .controls { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; } .btn, .select { padding: 0.5rem 1rem; border: 1px solid #555; border-radius: 4px; background-color: #3d3d3d; color: #ffffff; cursor: pointer; font-size: 0.9rem; transition: background-color 0.2s; } .btn:hover { background-color: #4d4d4d; } .select { cursor: pointer; } /* Main content */ .main { padding: 1rem; min-height: calc(100vh - 120px); } /* Dropzone */ .dropzone { border: 2px dashed #555; border-radius: 8px; padding: 3rem 1rem; text-align: center; margin: 2rem 0; transition: border-color 0.2s, background-color 0.2s; } .dropzone:hover { border-color: #ff6b35; background-color: rgba(255, 107, 53, 0.05); } .dropzone.dragover { border-color: #ff6b35; background-color: rgba(255, 107, 53, 0.1); } .dropzone-content { pointer-events: none; } .dropzone-icon { font-size: 3rem; margin-bottom: 1rem; } .dropzone-hint { color: #888; font-size: 0.9rem; margin-top: 0.5rem; } /* Gallery grid */ .gallery { margin-top: 2rem; } .media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; padding: 0; } /* Media items */ .media-item { position: relative; border-radius: 8px; overflow: hidden; background-color: #2d2d2d; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; aspect-ratio: 1; } .media-item:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3); } .media-thumbnail { width: 100%; height: 100%; object-fit: cover; display: block; } .media-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0, 0, 0, 0.7)); padding: 0.5rem; color: white; font-size: 0.8rem; } .media-name { font-weight: 500; margin-bottom: 0.2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .media-details { font-size: 0.7rem; color: #ccc; display: flex; justify-content: space-between; } .video-indicator { position: absolute; top: 0.5rem; right: 0.5rem; background-color: rgba(0, 0, 0, 0.7); color: white; padding: 0.2rem 0.4rem; border-radius: 4px; font-size: 0.7rem; display: flex; align-items: center; gap: 0.2rem; } /* Modal */ .modal { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background-color: rgba(0, 0, 0, 0.95); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 1rem; } .modal-content { position: relative; max-width: 90vw; max-height: 90vh; display: flex; flex-direction: column; align-items: center; } .modal-close { position: absolute; top: -3rem; right: 0; background: none; border: none; color: white; font-size: 2rem; cursor: pointer; z-index: 1001; padding: 0.5rem; } .modal-nav { position: absolute; top: 50%; width: 100%; display: flex; justify-content: space-between; z-index: 1001; pointer-events: none; } .nav-btn { background-color: rgba(0, 0, 0, 0.7); border: none; color: white; font-size: 2rem; padding: 1rem; cursor: pointer; border-radius: 50%; width: 3rem; height: 3rem; display: flex; align-items: center; justify-content: center; pointer-events: all; transition: background-color 0.2s; } .nav-btn:hover { background-color: rgba(0, 0, 0, 0.9); } .modal-media-container { position: relative; display: flex; align-items: center; justify-content: center; max-width: 100%; max-height: 70vh; } .modal-image, .modal-video { max-width: 100%; max-height: 100%; border-radius: 8px; } .modal-info { margin-top: 1rem; text-align: center; color: white; } .modal-info h3 { margin-bottom: 0.5rem; color: #ff6b35; } .modal-details { display: flex; gap: 2rem; justify-content: center; font-size: 0.9rem; color: #ccc; } /* Loading indicator */ .loading { text-align: center; padding: 2rem; } .spinner { width: 40px; height: 40px; border: 4px solid #333; border-top: 4px solid #ff6b35; border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 1rem; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } /* Utility classes */ .hidden { display: none !important; } .visible { display: block !important; } /* Mobile optimizations */ @media (max-width: 768px) { .header { padding: 0.5rem; } .header h1 { font-size: 1.3rem; margin-bottom: 0.5rem; } .controls { gap: 0.3rem; flex-direction: column; align-items: stretch; } .btn, .select { padding: 0.7rem; font-size: 1rem; } .main { padding: 0.5rem; } .media-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.5rem; } .dropzone { padding: 2rem 1rem; margin: 1rem 0; } .modal-content { max-width: 95vw; max-height: 95vh; } .modal-close { top: -2.5rem; font-size: 1.5rem; } .nav-btn { font-size: 1.5rem; width: 2.5rem; height: 2.5rem; padding: 0.5rem; } .modal-details { flex-direction: column; gap: 0.5rem; } } @media (max-width: 480px) { .media-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); } .controls { gap: 0.5rem; } .btn, .select { padding: 0.8rem; } } /* High DPI displays */ @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) { .media-thumbnail { image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges; } } /* Touch-friendly interactions */ @media (hover: none) and (pointer: coarse) { .media-item { transform: none; } .media-item:active { transform: scale(0.98); } .btn:active { transform: scale(0.98); } }