﻿/* TPSP.Portal Master Stylesheet
   Authority: James William Pirkle, II
   Brand: The Purple Syntax Press™
   Logic: High-Rigor, Zero-Redundancy Architecture
*/

/* --- CORE RESIDENCY --- */
body {
    background-color: #0F172A; /* Deep Slate Base */
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    color: #F8F5F0; /* Off-White Text Authority */
    overflow-x: hidden;
    min-height: 100vh;
}

/* --- BACKGROUND ENGINE --- */
.bg-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
}

    .bg-fixed img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

/* --- UNIVERSAL LAYOUT ENGINES --- */
/* Standard centered layout (Home/Mission/Scriptorium) */
.main-layout {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* Founder Layout: Maximizes visibility for the left side of the background asset */
.main-layout-founder {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 2rem;
}

/* --- CONTENT BOX RESIDENCY --- */
.content-box {
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: none !important;
    outline: none !important;
    border-radius: 2rem;
    padding: 6rem 4rem;
    text-align: center;
    width: 90%;
    max-width: 1100px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.content-box-scroll {
    width: 50vw;
    max-height: 85vh;
    overflow-y: auto;
    text-align: left;
    padding: 5rem 4rem;
    background: rgba(15, 23, 42, 0.7);
}

    /* Custom Authority Scrollbar */
    .content-box-scroll::-webkit-scrollbar {
        width: 8px;
    }

    .content-box-scroll::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.02);
    }

    .content-box-scroll::-webkit-scrollbar-thumb {
        background: #5D2E8E;
        border-radius: 10px;
    }

/* --- SCRIPTORIUM SEARCH BANNER --- */
.filter-banner {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: flex-end;
    margin-bottom: 4rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 2.5rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.filter-group {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 0.6rem;
}

.filter-label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.5);
}

.filter-select {
    background: #1E293B;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.85rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    min-width: 220px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='[http://www.w3.org/2000/svg](http://www.w3.org/2000/svg)' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
}

/* --- NAVIGATION BANNER --- */
.nav-banner {
    display: flex;
    gap: 3.5rem;
    margin-bottom: 5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1.5rem;
    justify-content: center;
}

.nav-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    transition: all 0.3s ease;
}

    .nav-link:hover {
        color: #FFFFFF;
    }

    .nav-link.active {
        color: #5D2E8E !important;
        pointer-events: none;
    }

/* --- TYPOGRAPHY MECHANICS --- */
.brand-title, .brand-title::before, .brand-title::after,
.page-header, .page-header::before, .page-header::after {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background-image: none !important;
    border-image: none !important;
    content: none !important;
}

.brand-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 8vw, 7.5rem);
    font-weight: 900;
    color: #5D2E8E;
    text-transform: uppercase;
    margin-bottom: 2rem;
    line-height: 1;
    letter-spacing: -0.05em;
}

.brand-slogan {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 600;
    color: #FFFFFF;
    line-height: 1.6;
    margin-bottom: 4rem;
}

.page-header {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 7vw, 5rem);
    color: #FFFFFF;
    margin-bottom: 3.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 900;
}

.section-subheader {
    font-family: 'Playfair Display', serif;
    font-size: 1.85rem;
    color: #5D2E8E;
    margin: 3.5rem 0 1.5rem 0;
    text-transform: uppercase;
    font-weight: 700;
}

.page-text {
    font-size: 1.35rem;
    line-height: 2.2;
    color: rgba(255, 255, 255, 0.95);
    max-width: 800px;
    margin-bottom: 2rem;
    font-weight: 500;
}

.main-layout .page-text {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.brand-highlight {
    color: #FFFFFF;
    font-weight: 800;
}

/* --- BUTTON MECHANICS --- */
.btn-primary {
    background-color: #5D2E8E;
    color: white;
    padding: 1.25rem 3.5rem;
    border: none;
    border-radius: 0.25rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary {
    background: transparent;
    color: white;
    padding: 1.25rem 3.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.25rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: white;
}

/* --- BRAND FOOTER RESIDENCY --- */
.brand-footer {
    margin-top: 5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    width: 100%;
}

.copyright-text {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3em;
}