/* =========================================================
   style.css — BobCrew
   Ciemny, futurystyczny motyw z akcentami neonowymi
   i panelami w stylu "glass" (przezroczyste szkło).
   ========================================================= */

:root {
    --bg: #0b0f14;
    --bg-alt: #0e141b;
    --panel: rgba(23, 32, 43, 0.55);
    --panel-border: rgba(120, 200, 255, 0.15);
    --text: #e6f1ff;
    --text-dim: #9db2c7;
    --accent: #39e0ff;
    --accent-2: #b967ff;
    --danger: #ff5c7a;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    min-height: 100%;
}

body {
    position: relative;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ---------- Tło ze świecącymi plamami ---------- */
.bg-glow {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(600px circle at 15% 20%, rgba(57, 224, 255, 0.10), transparent 60%),
        radial-gradient(500px circle at 85% 75%, rgba(185, 103, 255, 0.10), transparent 60%),
        var(--bg);
}

/* ---------- Panel szklany (glassmorphism) ---------- */
.glass-panel {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
}

.accent { color: var(--accent); }

/* ---------- Nawigacja ---------- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 14px 20px;
}

.navbar-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    gap: 16px;
    flex-wrap: wrap;
}

.nav-brand {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    gap: 6px;
}

.nav-links a {
    padding: 8px 14px;
    border-radius: 8px;
    color: var(--text-dim);
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.nav-links a:hover {
    color: var(--text);
    background: rgba(57, 224, 255, 0.08);
    transform: translateY(-1px);
}

.nav-links a.active {
    color: var(--bg);
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-badge {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
}

/* ---------- Przyciski ---------- */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #061019;
    box-shadow: 0 6px 20px rgba(57, 224, 255, 0.25);
}

.btn-primary:hover {
    box-shadow: 0 8px 26px rgba(185, 103, 255, 0.35);
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--panel-border);
    color: var(--text);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.06);
}

/* ---------- Przycisk VAG (mniejszy, litery V/G czerwone, A biała) ---------- */
.btn-vag {
    padding: 5px 10px;
    font-size: 0.475rem; /* połowa rozmiaru zwykłego przycisku (0.95rem) */
    font-weight: 800;
    letter-spacing: 1.5px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--panel-border);
    color: var(--text);
}

.btn-vag:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-vag .letter-red { color: #ff2d4d; }
.btn-vag .letter-white { color: #ffffff; }

/* ---------- Strona logowania ---------- */
.auth-page { display: flex; }

.auth-wrapper {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-panel {
    width: 100%;
    max-width: 380px;
    padding: 36px 32px;
    text-align: center;
}

.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 6px;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #061019;
    font-weight: 800;
}

.brand h1 { font-size: 1.6rem; margin: 0; }

.auth-subtitle {
    color: var(--text-dim);
    margin-bottom: 24px;
    font-size: 0.9rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.auth-form label {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-top: 10px;
}

.auth-form input {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    padding: 12px 14px;
    color: var(--text);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-form input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(57, 224, 255, 0.15);
}

.auth-form .btn { margin-top: 20px; }

.alert {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    margin-bottom: 14px;
}

.alert-error {
    background: rgba(255, 92, 122, 0.12);
    border: 1px solid rgba(255, 92, 122, 0.35);
    color: #ffb3c1;
}

/* ---------- Treść stron ---------- */
.page-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.hero, .hero-small, .empty-state {
    padding: 36px 30px;
    margin-bottom: 28px;
    text-align: center;
}

.hero h1, .hero-small h1, .empty-state h1 {
    margin: 0 0 8px;
    font-size: 2rem;
}

.hero p, .hero-small p, .empty-state p {
    color: var(--text-dim);
    margin: 0;
}

.section-title {
    font-size: 1.2rem;
    margin: 0 0 16px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

/* ---------- Galeria ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 160px;
    gap: 14px;
}

.gallery-tile {
    position: relative;
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--panel-border);
    cursor: pointer;
    grid-column: span 1;
    grid-row: span 1;
}

.gallery-tile.tile-small   { grid-column: span 1; grid-row: span 1; }
.gallery-tile.tile-medium  { grid-column: span 2; grid-row: span 1; }
.gallery-tile.tile-large   { grid-column: span 2; grid-row: span 2; }
.gallery-tile.tile-featured{ grid-column: span 3; grid-row: span 2; }

.gallery-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.gallery-tile:hover img {
    transform: scale(1.06);
    filter: brightness(1.05);
}

.gallery-tile figcaption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 10px 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
    font-size: 0.85rem;
    font-weight: 600;
}

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox[hidden] { display: none; }

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 8, 12, 0.85);
    backdrop-filter: blur(4px);
}

.lightbox-content {
    position: relative;
    max-width: 720px;
    width: 100%;
    padding: 20px;
    z-index: 1;
}

.lightbox-content img {
    width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 10px;
    display: block;
}

.lightbox-caption { margin-top: 14px; }
.lightbox-caption h3 { margin: 0 0 4px; }
.lightbox-caption p { margin: 0; color: var(--text-dim); font-size: 0.9rem; }

.lightbox-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
}

/* ---------- Responsywność ---------- */
@media (max-width: 900px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-tile.tile-featured { grid-column: span 2; grid-row: span 2; }
    .gallery-tile.tile-large { grid-column: span 2; grid-row: span 1; }
}

@media (max-width: 720px) {
    .nav-toggle { display: flex; }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        margin-top: 8px;
        flex-direction: column;
        background: var(--bg-alt);
        border: 1px solid var(--panel-border);
        border-radius: 12px;
        padding: 10px;
        display: none;
    }

    .nav-links.open { display: flex; }

    .nav-user {
        width: 100%;
        justify-content: space-between;
        order: 3;
    }

    .navbar-inner { position: relative; }
}

@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 130px; }
    .hero h1, .hero-small h1, .empty-state h1 { font-size: 1.5rem; }
}
