:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --bg-color: #f8fafc;
    --text-main: #0f172a;
    --card-bg: #ffffff;
    --radius: 12px;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: system-ui, sans-serif; background-color: var(--bg-color); color: var(--text-main); }

.gallery-header { background: #0f172a; color: white; padding: 50px 20px; text-align: center; margin-bottom: 40px; }
.header-content h1 { font-size: 2.2rem; margin-bottom: 10px; }
.header-content p { color: #cbd5e1; }

.upload-section { max-width: 800px; margin: 0 auto 40px; background: var(--card-bg); padding: 30px; border-radius: var(--radius); box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.upload-form h2 { margin-bottom: 20px; }
.input-group { display: grid; grid-template-columns: 2fr 1fr; gap: 15px; margin-bottom: 15px; }
input[type="text"], select, input[type="file"] { width: 100%; padding: 12px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 1rem; }
.btn-primary { background: var(--primary-color); color: white; border: none; padding: 14px; border-radius: 8px; cursor: pointer; width: 100%; font-weight: bold; transition: var(--transition); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-primary:disabled { background: #94a3b8; cursor: not-allowed; }
.status-msg { text-align: center; margin-top: 15px; font-weight: bold; }

.gallery-container { max-width: 1400px; margin: 0 auto; padding: 0 20px 60px; }
.premium-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 25px; }
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer; aspect-ratio: 4/3; background: #e2e8f0; }
.gallery-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover .gallery-image { transform: scale(1.05); }

.gallery-overlay { position: absolute; bottom: 0; left: 0; width: 100%; background: rgba(15,23,42,0.8); color: white; padding: 15px; transform: translateY(100%); transition: transform 0.3s ease; }
.gallery-item:hover .gallery-overlay { transform: translateY(0); }
.gallery-overlay h3 { font-size: 1.1rem; margin-bottom: 5px; }
.gallery-overlay span { font-size: 0.85rem; color: #93c5fd; }

.lightbox { display: none; position: fixed; z-index: 999; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); padding-top: 50px; }
.lightbox-content { margin: auto; display: block; max-width: 90%; max-height: 80vh; border-radius: 8px; }
.lightbox-caption { text-align: center; color: white; padding: 15px; font-size: 1.2rem; }
.lightbox-close { position: absolute; top: 20px; right: 40px; color: white; font-size: 40px; cursor: pointer; }
.loader { text-align: center; padding: 40px; font-size: 1.2rem; color: #64748b; }

@media (max-width: 600px) { .input-group { grid-template-columns: 1fr; } }