/* ------------------------------------------------------------------
   L3V3L Photography — themed to match the site (dark navy/indigo).
   Requires css/style.css to be loaded first (supplies the :root vars).
   ------------------------------------------------------------------ */

body {
    background: var(--mainColor);
    color: var(--secondaryText);
    font-family: 'Roboto Mono', monospace;
    margin: 0;
    min-height: 100vh;
}

/* --- Brand + vertical nav ---------------------------------------- */

.brand {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 50;
    font-family: 'Bitwise-m19x', 'Dosis', sans-serif;
    font-size: 22px;
    letter-spacing: 2px;
    color: var(--mainText);
}

.vertical-nav {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 180px;
    padding-top: 90px;
    background: var(--secondaryColor);
    border-right: 1px solid var(--borderColor);
    z-index: 40;
}

.vertical-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.vertical-nav a {
    display: block;
    padding: 14px 24px;
    color: var(--secondaryText);
    font-size: 14px;
    letter-spacing: 0.5px;
    border-left: 3px solid transparent;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.vertical-nav a:hover {
    color: #17a2b8;
    background: rgba(23, 162, 184, 0.08);
    border-left-color: #17a2b8;
}

/* --- Layout ------------------------------------------------------- */

.main-content {
    margin-left: 180px;
    padding: 90px 6% 80px;
    max-width: 1200px;
}

.page-title {
    font-family: 'Dosis', sans-serif;
    font-weight: 300;
    font-size: 40px;
    color: var(--mainText);
    margin: 0 0 10px;
}

.page-sub {
    margin: 0 0 50px;
    font-size: 14px;
}

.category-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin: 56px 0;
}

/* --- Image frame -------------------------------------------------- */

.frame {
    position: relative;
    border: 1px solid var(--borderColor);
    border-radius: 14px;
    overflow: hidden;
    background: var(--secondaryColor);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.frame a {
    display: block;
}

.frame img {
    display: block;
    width: 100%;
    height: 340px;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.category .frame:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(23, 162, 184, 0.35);
}

.category .frame:hover img {
    transform: scale(1.03);
}

.frame .frame-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 340px;
    color: var(--secondaryText);
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px dashed var(--borderColor);
    border-radius: 14px;
}

/* --- Text side: name + corner-box preview ------------------------- */

.category-name {
    font-family: 'Dosis', sans-serif;
    font-weight: 600;
    font-size: 26px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--mainText);
    margin-bottom: 18px;
}

.preview {
    position: relative;
    background: var(--secondaryColor);
    border: 1px solid var(--borderColor);
    border-radius: 12px;
    padding: 26px 30px;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.centered-info {
    color: var(--secondaryText);
    font-size: 14px;
    line-height: 1.8;
    text-align: center;
}

/* Corner accents (class-based — valid for repeats, unlike the old dup ids) */
.corner {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--mainColor);
    border: 3px solid #17a2b8;
    border-radius: 50%;
}

.corner-tl { top: -11px; left: -11px; }
.corner-tr { top: -11px; right: -11px; }
.corner-br { bottom: -11px; right: -11px; }
.corner-bl { bottom: -11px; left: -11px; }

/* --- Coming soon state -------------------------------------------- */

.category-grid.coming-soon {
    opacity: 0.6;
}

.category-grid.coming-soon .frame {
    box-shadow: none;
    transform: none;
}

.soon-badge {
    display: inline-block;
    margin-top: 14px;
    padding: 5px 14px;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #17a2b8;
    border: 1px solid rgba(23, 162, 184, 0.5);
    border-radius: 999px;
}

/* --- Access gate page --------------------------------------------- */

.access-form {
    max-width: 420px;
    margin: 14vh auto 0;
    padding: 44px 40px;
    background: var(--secondaryColor);
    border: 1px solid var(--borderColor);
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.access-form h2 {
    font-family: 'Dosis', sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--mainText);
    margin-top: 0;
}

.access-form input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    margin-bottom: 16px;
    background: var(--mainColor);
    border: 1px solid var(--borderColor);
    border-radius: 8px;
    color: var(--mainText);
    font-family: 'Roboto Mono', monospace;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.access-form input:focus {
    border-color: #17a2b8;
    box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.25);
}

.access-form button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #17a2b8, #0f7d8c);
    color: #fff;
    font-family: 'Roboto Mono', monospace;
    font-size: 15px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: filter 0.2s, transform 0.15s;
}

.access-form button:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.access-form .access-error {
    color: #ff7b7b;
    font-size: 13px;
    margin: 0 0 14px;
}

.access-form .access-note {
    font-size: 12px;
    color: var(--secondaryText);
    margin-bottom: 0;
    line-height: 1.7;
}

/* --- Responsive ---------------------------------------------------- */

@media screen and (max-width: 860px) {
    .brand {
        position: static;
        padding: 20px 24px 0;
    }

    .vertical-nav {
        position: static;
        width: 100%;
        height: auto;
        padding-top: 0;
        border-right: none;
        border-bottom: 1px solid var(--borderColor);
    }

    .vertical-nav ul {
        display: flex;
        flex-wrap: wrap;
    }

    .vertical-nav a {
        border-left: none;
        border-bottom: 3px solid transparent;
        padding: 12px 18px;
    }

    .vertical-nav a:hover {
        border-left-color: transparent;
        border-bottom-color: #17a2b8;
    }

    .main-content {
        margin-left: 0;
        padding: 30px 5% 60px;
    }

    .category-grid {
        grid-template-columns: 1fr;
        gap: 26px;
        margin: 44px 0;
    }

    /* keep image above text on mobile regardless of alternation */
    .category-grid .category { order: -1; }

    .frame img,
    .frame .frame-empty {
        height: 240px;
    }
}
