/* FILE CSS UTAMA - MyImageShack */
:root {
    --primary: #3b82f6;
    --primary-dark: #1e40af;
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --border: #334155;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', system-ui, sans-serif; }
body { background: var(--bg-dark); color: var(--text-light); min-height: 100vh; }

/* HEADER */
.header { background: rgba(15, 23, 42, 0.95); padding: 1rem 2rem; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 1000; }
.nav-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon { font-size: 2rem; color: #60a5fa; }
.logo-text { font-size: 1.5rem; font-weight: 700; color: var(--text-light); }

/* NAV LINKS */
.nav-links { display: flex; gap: 1.5rem; list-style: none; }
.nav-link { color: var(--text-muted); text-decoration: none; padding: 0.5rem 1rem; border-radius: 8px; transition: 0.3s; display: flex; align-items: center; gap: 8px; }
.nav-link:hover, .nav-link.active { background: rgba(59, 130, 246, 0.1); color: #60a5fa; }

/* HERO SECTION */
.hero { text-align: center; padding: 4rem 2rem; background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%); border-radius: 20px; margin: 2rem auto; max-width: 900px; }
.hero-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 1rem; background: linear-gradient(90deg, #60a5fa, #a78bfa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-subtitle { font-size: 1.1rem; color: #e2e8f0; max-width: 600px; margin: 0 auto 2rem; }
.upload-btn-large { display: inline-flex; align-items: center; gap: 10px; background: white; color: var(--primary); padding: 1rem 2rem; border-radius: 50px; text-decoration: none; font-weight: 600; transition: 0.3s; }
.upload-btn-large:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }

/* GALLERY */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; margin: 2rem 0; }
.gallery-item { background: var(--bg-card); border-radius: 12px; overflow: hidden; border: 1px solid var(--border); transition: 0.3s; }
.gallery-item:hover { transform: translateY(-5px); border-color: var(--primary); }
.gallery-item img { width: 100%; height: 200px; object-fit: cover; display: block; }
.image-info { padding: 1rem; }
.image-title { font-weight: 600; margin-bottom: 0.5rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.image-meta { display: flex; justify-content: space-between; font-size: 0.9rem; color: var(--text-muted); }

/* UPLOAD PAGE */
.upload-container { max-width: 800px; margin: 2rem auto; background: var(--bg-card); border-radius: 15px; padding: 2rem; border: 1px solid var(--border); }
.upload-header { text-align: center; margin-bottom: 2rem; }
.upload-area { border: 3px dashed var(--border); border-radius: 12px; padding: 3rem 2rem; text-align: center; cursor: pointer; transition: 0.3s; }
.upload-area.drag-over { border-color: var(--primary); background: rgba(59, 130, 246, 0.05); }
.upload-icon { font-size: 3rem; color: var(--primary); margin-bottom: 1rem; }
.browse-btn { display: inline-block; background: var(--primary); color: white; padding: 0.8rem 1.5rem; border-radius: 8px; cursor: pointer; margin: 1rem 0; }
.preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; margin-top: 1rem; }
.preview-item { border-radius: 8px; overflow: hidden; position: relative; }
.preview-item img { width: 100%; height: 150px; object-fit: cover; }

/* FOOTER */
.footer { background: #0f172a; border-top: 1px solid var(--border); padding: 2rem; margin-top: 3rem; text-align: center; color: var(--text-muted); }

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-container { flex-direction: column; gap: 1rem; }
    .nav-links { flex-wrap: wrap; justify-content: center; }
    .hero { padding: 3rem 1rem; margin: 1rem; }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
}