/* style.css - Modern Starfleet UI Theme */
:root {
    --bg-void: #030611;          /* Deep space black */
    --glass-bg: rgba(12, 19, 38, 0.45); /* Holographic transparent base */
    --text-primary: #e2ebf8;     /* Crisp starlight silver-white */
    --text-muted: #7184a3;       /* Subdued gray-blue terminal text */
    
    /* Neon LCARS Evolution Palette */
    --st-cyan: #00f0ff;          /* Science / Sensor arrays */
    --st-gold: #ffb700;          /* Operations / Engineering */
    --st-red: #ff3366;           /* Tactical / Alert states */
    --st-violet: #bc00dd;        /* Subspace Communications */
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-void);
    color: var(--text-primary);
    font-family: 'Segoe UI', Roboto, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    letter-spacing: 0.05em;
    background-image: 
        radial-gradient(circle at 80% 20%, rgba(0, 240, 255, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 10% 70%, rgba(255, 51, 102, 0.02) 0%, transparent 40%);
}

.starfleet-container {
    display: flex;
    min-height: 100vh;
}

/* --- Logo Placement Styling --- */
.st-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 10px 20px 10px;
    width: 100%;
}

.st-logo {
    max-width: 100%;
    height: auto;
    max-height: 90px; /* Restricts the vertical growth on large displays */
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(0, 240, 255, 0.15));
    transition: filter 0.3s ease;
}

.st-logo:hover {
    filter: drop-shadow(0 0 18px rgba(0, 240, 255, 0.35));
}

/* --- Left Vector Navigation Panel --- */
.st-sidebar {
    width: 280px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(90deg, rgba(12,19,38,0.3) 0%, transparent 100%);
}

.st-bracket-top, .st-bracket-bottom {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-muted);
    padding: 10px;
    border-left: 3px solid var(--text-muted);
}
.st-bracket-top { border-top: 3px solid var(--text-muted); border-top-left-radius: 8px; }
.st-bracket-bottom { border-bottom: 3px solid var(--text-muted); border-bottom-left-radius: 8px; }

.st-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
    flex-grow: 1;
}

/* --- Modern Interactive UI Buttons --- */
.st-btn {
    display: block;
    text-decoration: none;
    padding: 14px 18px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    border-left: 4px solid var(--text-muted);
    color: var(--text-primary);
}

.st-btn:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateX(5px);
}

/* Contextual Borders per Sector */
.st-btn.nav-home { border-left-color: var(--st-cyan); }
.st-btn.nav-rpgx { border-left-color: var(--st-gold); }
.st-btn.nav-holo { border-left-color: var(--st-red); }
.st-btn.nav-discord { border-left-color: var(--st-violet); }
.st-btn.nav-admin { border-left-color: var(--text-muted); font-size: 0.75rem; opacity: 0.6; }

/* --- Viewscreen (Content Panel) --- */
.st-viewscreen {
    flex-grow: 1;
    padding: 40px 50px;
    display: flex;
    flex-direction: column;
}

.st-header {
    position: relative;
    margin-bottom: 30px;
}

.st-header h1 {
    font-size: 2.2rem;
    font-weight: 300;
    text-transform: uppercase;
    margin: 10px 0 0 0;
    letter-spacing: 0.15em;
    text-shadow: 0 0 20px rgba(226, 235, 248, 0.2);
}

.header-line {
    height: 2px;
    background: linear-gradient(90deg, var(--st-cyan) 0%, rgba(0,240,255,0.1) 80%, transparent 100%);
    width: 100%;
}

.sector-tag {
    font-size: 0.7rem;
    color: var(--st-cyan);
    font-weight: bold;
    position: absolute;
    right: 0;
    top: -15px;
}

/* --- Holographic Glassmorphism Cards --- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(113, 132, 163, 0.15);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 25px;
    line-height: 1.7;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.division-panel {
    border-top: 3px solid var(--st-gold);
}

.division-panel h3 {
    margin-top: 0;
    font-size: 1.1rem;
    color: var(--st-gold);
    letter-spacing: 0.1em;
}

.manifest p {
    margin: 8px 0;
    font-size: 1.05rem;
}

.manifest .label {
    color: var(--text-muted);
    font-weight: bold;
    display: inline-block;
    width: 40px;
}

/* --- Modern Tactical Call to Action --- */
.action-download {
    display: inline-block;
    margin-top: 25px;
    padding: 15px 30px;
    background: transparent;
    color: var(--st-cyan);
    border: 1px solid var(--st-cyan);
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    border-radius: 4px;
    letter-spacing: 0.1em;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
    transition: all 0.3s ease;
}

.action-download:hover {
    background: var(--st-cyan);
    color: var(--bg-void);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.4);
    transform: translateY(-2px);
}

/* --- Trademark Footer --- */
.st-footer {
    margin-top: auto;
    padding-top: 30px;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    border-top: 1px solid rgba(113, 132, 163, 0.1);
}

/* --- Responsiveness System --- */
@media (max-width: 900px) {
    .starfleet-container { flex-direction: column; }
    .st-sidebar { width: 100%; padding: 20px; }
    .st-bracket-top, .st-bracket-bottom { display: none; }
    .st-menu { flex-direction: row; flex-wrap: wrap; }
    .st-btn { flex: 1 1 calc(50% - 10px); text-align: center; }
    .st-viewscreen { padding: 20px; }
}

@media (max-width: 550px) {
    .st-menu { flex-direction: column; }
    .st-btn { width: 100%; }
}

/* --- Form and Login Interface Additions --- */
.st-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.st-input {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--text-muted);
    border-radius: 4px;
    padding: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.st-input:focus {
    outline: none;
    border-color: var(--st-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
    background: rgba(12, 19, 38, 0.8);
}

.alert-box {
    background: rgba(255, 51, 102, 0.15);
    border-left: 4px solid var(--st-red);
    color: #ff88a3;
    padding: 12px;
    font-size: 0.85rem;
    font-weight: bold;
    border-radius: 0 4px 4px 0;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.st-btn.nav-violet { border-left-color: var(--st-violet); }

/* --- Prominent Reworked Header Download Layout Deck --- */
.prominent-dl-deck {
    margin-top: 15px;
    display: flex;
    justify-content: flex-start;
}

.header-dl-btn {
    padding: 12px 35px !important;
    font-size: 0.95rem !important;
    border-radius: 4px !important;
    font-weight: 800 !important;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2) !important;
}

/* --- Holographic Glass Fluid Slider Carousel Aesthetics --- */
.st-carousel-viewport {
    position: relative;
    width: 100%;
    height: 380px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-bottom: 3px solid var(--st-cyan);
    border-radius: 8px;
    margin-bottom: 25px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}

.st-carousel-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.st-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.st-slide.active {
    opacity: 1;
    visibility: visible;
}

.st-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crops cleanly inside the view block bounds */
    filter: brightness(0.85) contract(1.05);
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(3, 6, 17, 0.7);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: var(--st-cyan);
    font-size: 2rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.carousel-control:hover {
    background: var(--st-cyan);
    color: var(--bg-void);
    box-shadow: 0 0 15px var(--st-cyan);
}

.carousel-control.prev { left: 20px; }
.carousel-control.next { right: 20px; }

/* Responsive adjustments for carousel height */
@media (max-width: 768px) {
    .st-carousel-viewport { height: 240px; }
    .carousel-control { width: 35px; height: 35px; font-size: 1.5rem; }
}