/* --- THE MANSON ARCHIVES: PROFESSIONAL RED & BLACK THEME --- */

:root {
    --bg-black: #050505;        /* Deep background black */
    --card-black: #121212;      /* Lighter black for cards */
    --primary-red: #b30000;     /* Strong archival red */
    --hover-red: #ff1a1a;       /* Bright red for interaction */
    --text-main: #ffffff;       /* Pure white for headings */
    --text-muted: #a0a0a0;      /* Soft grey for descriptions */
    --border-color: #252525;    /* Subtle borders */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--bg-black);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- NAVIGATION --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 8%;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--primary-red);
    text-transform: uppercase;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

nav a:hover, nav a.active {
    color: var(--text-main);
    border-bottom: 2px solid var(--primary-red);
    padding-bottom: 5px;
}

/* --- UPDATED HERO WITH IMAGE BACKGROUND --- */
.hero {
    height: 100vh; /* Full screen height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 10%;

    /* The Image Setup */
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.6), var(--bg-black)), /* Darkens the image for text readability */
        url('bryce4.jpg'); /* REPLACE THIS with your image name */
    
    background-size: cover;      /* Scales image automatically */
    background-position: center; /* Keeps Bryce centered */
    background-attachment: fixed; /* Optional: adds a cool parallax scrolling effect */
}

.hero h1 {
    font-size: clamp(3.5rem, 10vw, 6rem); /* Larger, bolder title */
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    letter-spacing: -2px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5); /* Helps text pop against the photo */
}

.hero p {
    color: #eeeeee; /* Brighter white for better visibility over photo */
    font-size: 1.2rem;
    font-weight: 400;
    max-width: 700px;
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

.cta-button:hover {
    background-color: var(--hover-red);
    transform: scale(1.05);
}

/* --- GALLERY LAYOUT (Supports 20+ Images) --- */
.gallery-container {
    padding: 5rem 8%;
    max-width: 1600px;
    margin: 0 auto;
}

.gallery-header {
    margin-bottom: 4rem;
}

.gallery-header h1 {
    font-size: 2.5rem;
    border-left: 5px solid var(--primary-red);
    padding-left: 20px;
    margin-bottom: 10px;
}

.grid {
    display: grid;
    /* Auto-layout: fits as many 320px columns as possible */
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* --- PHOTO CARDS --- */
.photo-card {
    background: var(--card-black);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    transition: 0.4s ease;
}

.photo-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-red);
    box-shadow: 0 20px 40px rgba(179, 0, 0, 0.15);
}

.photo-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    cursor: pointer;
    filter: grayscale(20%);
    transition: 0.5s;
}

.photo-card:hover img {
    filter: grayscale(0%);
}

.card-info {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-info span {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.download-btn {
    padding: 6px 15px;
    background: transparent;
    border: 1px solid var(--primary-red);
    color: var(--primary-red);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 3px;
    transition: 0.3s;
}

.download-btn:hover {
    background: var(--primary-red);
    color: white;
}

/* --- LIGHTBOX (Zoom View) --- */
.lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.98);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    border: 2px solid var(--border-color);
}

.close {
    position: absolute;
    top: 30px;
    right: 50px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

/* --- FOOTER --- */
footer {
    padding: 4rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 1px;
}
/* --- AUDIO BUTTON --- */
#music-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    background: rgba(5, 5, 5, 0.8);
    border: 1px solid var(--primary-red);
    color: var(--primary-red);
    padding: 10px 15px;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 800;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: 0.3s;
}

#music-btn:hover {
    background: var(--primary-red);
    color: white;
}
/* --- CTA BUTTON STYLING --- */
.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--primary-red);
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-red);
    margin-top: 10px;
}

.cta-button:hover {
    background-color: transparent;
    color: var(--primary-red);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(179, 0, 0, 0.3);
}
/* --- CASE FILE STYLING --- */
.case-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--primary-red);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.status-tag {
    background: var(--primary-red);
    color: white;
    padding: 2px 10px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 3px;
}

.case-summary p {
    margin-bottom: 8px;
    font-family: 'Courier New', Courier, monospace; /* Legal Document feel */
    font-size: 0.95rem;
}

.timeline-entry {
    margin-top: 25px;
}

.timeline-entry h4 {
    color: var(--text-main);
    font-size: 1rem;
    margin-bottom: 10px;
    text-decoration: underline;
}

.legal-note {
    margin-top: 40px;
    padding-top: 10px;
    border-top: 1px dashed var(--border-color);
    font-size: 0.8rem;
    text-align: center;
}
/* --- FILE PAGE EXTENDED STYLING --- */
.archival-divider {
    border: 0;
    border-top: 1px solid var(--primary-red);
    margin: 30px 0;
    opacity: 0.3;
}

.case-section {
    margin-bottom: 40px;
}

.case-section h3 {
    font-size: 0.9rem;
    color: var(--primary-red);
    letter-spacing: 2px;
    margin-bottom: 15px;
    border-left: 3px solid var(--primary-red);
    padding-left: 10px;
}

.charge-box {
    background: #1a1a1a;
    padding: 15px;
    border-radius: 4px;
}

.charge-code {
    font-family: 'Courier New', monospace;
    color: var(--text-main);
    font-weight: bold;
}

.minutes-log {
    border-left: 1px solid var(--border-color);
    padding-left: 20px;
    margin-left: 10px;
}

.log-entry {
    margin-bottom: 20px;
}

.log-date {
    display: block;
    font-size: 0.75rem;
    color: var(--primary-red);
    font-weight: bold;
    margin-bottom: 5px;
}

.legal-footer {
    text-align: center;
    margin-top: 50px;
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 3px;
    border-top: 1px dashed var(--border-color);
    padding-top: 20px;
}