*,
*::before,
*::after {
    box-sizing: border-box;
}

body.dark-body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #111827, #020617 55%, #000 100%);
    color: #e5e7eb;
}

/* Layout */

.site-header,
.admin-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 2rem;
}

.glass-header {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.site-main {
    padding: 1.5rem 2rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.site-footer {
    padding: 1.5rem;
    text-align: center;
    color: #9ca3af;
    font-size: 0.85rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

/* Logo & nav */

.logo a {
    text-decoration: none;
    color: #e5e7eb;
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-main {
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.logo-sub {
    font-size: 0.7rem;
    color: #38bdf8;
}

.main-nav a {
    margin-left: 1.25rem;
    text-decoration: none;
    font-size: 0.95rem;
    color: #cbd5f5;
    position: relative;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.3rem;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #38bdf8, #a855f7);
    transition: width 0.2s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

/* Hero */

.hero-section {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 2rem;
    margin-top: 1.5rem;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(2rem, 3vw, 2.6rem);
    margin-bottom: 0.75rem;
}

.highlight {
    color: #38bdf8;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.hero-text p {
    color: #9ca3af;
    max-width: 36rem;
}

/* Progress */

.progress-wrapper {
    margin: 1.5rem 0;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #e5e7eb;
    margin-bottom: 0.4rem;
}

.progress-bar {
    width: 100%;
    height: 14px;
    border-radius: 999px;
    background: radial-gradient(circle at left, #1e293b, #020617);
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.4);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #38bdf8, #a855f7);
    box-shadow: 0 0 14px rgba(59, 130, 246, 0.7);
    transition: width 0.4s ease-out;
}

/* Stats */

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.stat-card {
    padding: 0.75rem 0.9rem;
    border-radius: 0.9rem;
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(148, 163, 184, 0.4);
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #9ca3af;
}

.stat-value {
    display: block;
    margin-top: 0.25rem;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Hero image */

.hero-image img {
    width: 100%;
    border-radius: 1.2rem;
    border: 1px solid rgba(148, 163, 184, 0.5);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.9);
    object-fit: cover;
    max-height: 360px;
}

.hero-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    border-radius: 1.2rem;
    border: 1px dashed rgba(148, 163, 184, 0.7);
    color: #6b7280;
}

.hero-placeholder .hint {
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* Milestones */

.milestone-section {
    margin-top: 2.5rem;
}

.milestone-section h2,
.collection-section h1,
.timeline-section h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.milestone-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.9rem;
}

.milestone-card {
    padding: 0.9rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 42, 0.85);
    font-size: 0.85rem;
}

.milestone-card.reached {
    border-color: #22c55e;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.4);
}

.milestone-target {
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.milestone-note {
    color: #9ca3af;
    margin-bottom: 0.2rem;
}

/* Collection */

.collection-section {
    margin-top: 2.5rem;
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.collection-card {
    border-radius: 0.9rem;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 42, 0.9);
    display: flex;
    flex-direction: column;
}

.collection-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.collection-body {
    padding: 0.75rem 0.85rem 1rem;
}

.collection-body h2 {
    font-size: 1rem;
    margin: 0 0 0.35rem;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.4rem;
}

.badge {
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid rgba(148, 163, 184, 0.7);
}

.type-set {
    border-color: #38bdf8;
}

.type-minifig {
    border-color: #f97316;
}

.type-bulk,
.type-moc {
    border-color: #a855f7;
}

.badge.theme {
    border-color: #22c55e;
}

.piece-count,
.acquired {
    font-size: 0.8rem;
    color: #9ca3af;
    margin: 0.2rem 0;
}

.description {
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Admin */

.admin-body {
    min-height: 100vh;
}

.admin-main {
    max-width: 1100px;
    margin: 1.5rem auto 3rem;
    padding: 0 1.5rem;
}

.admin-login-card {
    max-width: 420px;
    margin: 7vh auto;
    padding: 1.5rem 1.75rem;
}

.glass-card {
    background: rgba(15, 23, 42, 0.92);
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.6);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.95);
}

.admin-login-card h1 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.admin-login-card label,
.admin-form label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.admin-login-card input,
.admin-form input {
    width: 100%;
    margin-top: 0.2rem;
    padding: 0.5rem 0.6rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: rgba(15, 23, 42, 0.8);
    color: #e5e7eb;
}

.admin-form {
    padding: 1.2rem 1.4rem 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.current-image img {
    margin-top: 0.3rem;
    max-width: 180px;
    border-radius: 0.5rem;
}

/* Buttons, alerts */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    background: linear-gradient(90deg, #38bdf8, #a855f7);
    color: #0b1120;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

.btn.small {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
}

.btn.primary {
    width: fit-content;
}

.alert {
    border-radius: 0.75rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
}

.alert.error {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.6);
    color: #fecaca;
}

.alert.success {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.7);
    color: #bbf7d0;
}

/* Responsive */

@media (max-width: 768px) {
    .site-main {
        padding: 1.25rem 1.2rem 3rem;
    }

    .hero-section {
        grid-template-columns: minmax(0, 1fr);
    }
}


.set-number {
    font-size: 0.85rem;
    color: #93c5fd;
    margin: -0.3rem 0 0.2rem 0;
}


.wishlist-status {
    display: inline-block;
    padding: 0.1rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    text-transform: capitalize;
    border: 1px solid rgba(148, 163, 184, 0.7);
}

.wishlist-status-planned {
    border-color: #38bdf8;
    color: #bae6fd;
}

.wishlist-status-ordered {
    border-color: #facc15;
    color: #fef9c3;
}

.wishlist-status-built {
    border-color: #22c55e;
    color: #bbf7d0;
}


