:root {
    /* Define your background color as a variable */
    --page-bg: #000000; 
}

body {
    background-color: var(--page-bg);
    /* Browser automatically picks white or black */
    color: contrast-color(var(--page-bg)); 
}

/* Container that holds your background */
.background-container {
    width: 100%;             /* Scales to the width of the screen */
    max-width: 1920px;       /* Prevents stretching beyond original quality */
    margin: 0 auto;          /* Centers the image if screen is wider than 1920px */
    
    overflow: hidden;
    position: relative;
}

/* The actual poster image */
.poster-image {
    width: 100%;
    height: auto; /* Scales 1920 to fit screen width */
    display: block;
}

/* The Fade Effect */
.background-container::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10%; /* Adjust percentage to change how 'long' the fade is */
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, #000 100%);
    pointer-events: none; /* Allows you to click things 'under' the fade */
}

/* Overlay needs to be forced to the front */
.content-overlay {
    position: relative;
    z-index: 10;        /* Higher layer than the background */
    text-align: center;
    padding: 5px 5px;
    display: block;     /* Ensures it takes up space */
}

.link-container {
    display: flex;
    flex-direction: column;
/*    align-items: center; */
    gap: 16px;
    padding: 10px;
    margin: 20px auto; 
    width: 90%;
    max-width: 515px;

    /* Light Glass Effect - Makes it visible on black */
    background: rgba(255, 255, 255, 0.15); 
    backdrop-filter: blur(15px); /* Frosted glass effect */
    
    /* Subtle border to define the edges */
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    
    /* Soft outer glow to separate from background */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);

    /* Main body text (About Me / Privacy content) */
    color: #F5F5F5;            /* Off-white/Ivory for better readability on black */
    font-family: 'Inter', sans-serif; /* Clean, modern font */
    line-height: 1.6;
}

/* Headings (Movie Titles and Page Titles) */
.link-container h1, 
.link-container h2, 
.link-container h3 {
  color: #FFC107;            /* Movie Gold / Cyber Amber */
  text-transform: uppercase; /* Cinematic style */
  letter-spacing: 2px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* Makes text "pop" against movie backgrounds */
}

/* Paragraphs and Lists */
.link-container p, 
.link-container li {
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
}

/* Links inside the text (e.g., email or external links) */
.link-container a {
  color: #FFC107;
  text-decoration: underline;
  font-weight: bold;
}

.link-container a:hover {
  color: #FFE082; /* Lighter gold glow on hover */
}

/* Force buttons to be visible and clickable */
.link-button {
    display: block;     /* Vital for <a> tags to act like buttons */
    width: 100%;
    max-width: 422px;
    padding: 16px;
    background-color: #ffffff; /* White background to ensure they are seen */
    color: #000000 !important; /* Black text for high contrast */
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: transform 0.2s;
    text-align: center;
}

.justify-center {
  justify-content: center;
}
.items-center {
  align-items: center;
}
.flex-wrap {
  flex-wrap: wrap;
}
.flex {
  display: flex;
}

.link-button:hover {
    transform: translateY(-2px);
    background-color: #f0f0f0;
}

.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(.4,0,.2,1);
  transition-duration: .15s;
}
.p-2 {
  padding: .5rem;
}
.overflow-hidden {
  overflow: hidden;
}
.z-0 {
  z-index: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

.film-title {
    font-family: 'Cinzel', serif; /* Classic, high-end film look */
    font-size: clamp(2rem, 8vw, 4.5rem); /* Responsive size: scales with screen */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em; /* Spreads letters out for an "artsy" feel */
    margin: 0;
    padding-left: 0.2em; /* Offsets padding to keep text centered */
    background-color: var(--page-bg);
    color: contrast-color(var(--page-bg));
    /* Elegant Gradient Text */
    background: linear-gradient(to bottom, #ffffff 0%, #a1a1a1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    
    /* Subtle glow to help it pop against the image */
    text-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
}

.tagline {
        /* Force white text regardless of background calculations */
    color: #ffffff !important; 
    
    /* Ensure it is on a layer above the image */
    position: relative;
    z-index: 99; 
    
    /* Add a high-contrast shadow so it's visible even on light images */
    text-shadow: 0px 0px 8px rgba(0, 0, 0, 1), 0px 0px 4px rgba(0, 0, 0, 1);
    
    /* Basic visibility checks */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;

    font-family: 'Montserrat', sans-serif;
    font-weight: 600; /* Ultra thin */
    text-transform: uppercase;
    letter-spacing: 0.5em; /* Even wider spacing than the title */
    font-size: clamp(0.7rem, 2vw, 1.5rem);
    margin-top: 10px;
    animation: fadeIn 3s ease-in; /* Adds a slow, artistic reveal */
}

/* Artistic Fade-in Animation */
@keyframes fadeIn {
    from { opacity: 0; letter-spacing: 0.3em; }
    to { opacity: 0.7; letter-spacing: 0.5em; }
}

/* --- Footer Styling: Cyber Amber Palette --- */

/* Initial State: High-visibility Amber */
footer a, 
.separator {
    color: #FFC107 !important; /* Bright Amber Gold */
    text-decoration: none;
    font-weight: 500;
    padding: 5px 5px;
    transition: all 0.3s ease;
}

/* Hover State: Glow Effect */
footer a:hover {
    color: #FFE082 !important; /* Lighter Pale Gold */
    text-shadow: 0 0 8px rgba(255, 193, 7, 0.6); /* Subtle cinematic glow */
    text-decoration: underline;
}

/* Post-click (Visited): Deep Warm Orange */
/* This helps users know which administrative pages they've already checked */
footer a:visited {
    color: #FF8F00 !important; /* Deep Amber / Burnt Orange */
}

/* Active State: The moment of the click */
footer a:active {
    color: #FFFFFF !important; /* Brief white flash for tactile feedback */
    transform: scale(0.98);    /* Slight "press" effect */
}

/* Ensure the Social Icons also follow the color theme if they use currentColor */
footer svg {
    fill: #FFC107;
    transition: fill 0.3s ease;
}

footer a:hover svg {
    fill: #FFE082;
}

/* PORTRAIT MODE: Maintain fixed sizes */
@media screen and (orientation: portrait) {

    .link-container {
    /* Increase width so it doesn't look thin on narrow screens */
    width: 95%; 
    
    /* Reduce horizontal padding to give content more room inside */
    padding: 10px; 
    
    /* Ensure it doesn't shrink smaller than a readable width */
    min-width: 300px; 
    
    /* Increase the gap between links so they are easier to tap */
    gap: 24px; 
    
    /* Force a fixed margin to keep it centered but maximize space */
    margin: 10px auto;
  }

  /* Make sure the text/buttons inside the container also scale up */
  .link-container a {
    width: 94%;       /* Buttons take less than full width of container */
    font-size: 1.0rem; /* Larger text for readability?? */
    padding: 10px;     /* Larger tap target */
    text-align: center;
  }
}

.news-item {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #ddd;
}

.summary-short,
.summary-full {
  border: none;
  cursor: pointer;
  padding: 0;
  background-color: var(--page-bg);
  color: contrast-color(var(--page-bg));
}

.summary-short button,
.summary-full button {
  background: none;
  border: none;
  color: #007acc;
  cursor: pointer;
  padding: 0;
}

/* Hero */
.newsroom-hero {
  text-align: center;
  padding: 0.5rem 0.5rem 0.5rem;
}

.newsroom-hero h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.newsroom-hero p {
  font-size: 1.2rem;
  color: #555;
}

/* Controls */
.newsroom-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filters {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

.filter-item {
  display: flex;
  align-items: center;
  position: relative;
  padding-right: 0.5rem;
  margin-right: 0.5rem;
}

/* Add the | separator */
.filter-item:not(:last-child)::after {
  content: "|";
  color: #ccc;
  margin-left: 0.5rem;
}

/* Make the select visually match buttons */
.tag-filter select {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: #fff;
}

.filters button {
  padding: 0.5rem 0.5rem;
  border-radius: 20px;
  border: 1px solid #ddd;
  background: #f7f7f7;
  cursor: pointer;
  transition: 0.2s;
}

.filters button.active,
.filters button:hover {
  background: #222;
  color: #fff;
}

#search {
  padding: 0.5rem 0.5rem;
  border-radius: 20px;
  border: 1px solid #ddd;
  width: 250px;
}

/* Grid */
.news-grid {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
}

/* Cards */
.news-card {
  background: #fff;
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s;
  background-color: var(--page-bg);
  color: contrast-color(var(--page-bg));
}

.news-card:hover {
  transform: translateY(-4px);
}

.news-card h2 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.news-card .date {
  display: block;
  margin-top: 0.5rem;
  color: #777;
  font-size: 0.9rem;
}

.news-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: #007acc;
  font-weight: 600;
  text-decoration: none;
}

.news-link:hover {
  text-decoration: underline;
}


.featured-section {
  margin: 1rem 0 1rem;
  padding: 1rem;
  background: #fafafa;
  border-radius: 20px;
}

.featured-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1rem;
}

.featured-card {
  background: #fff;
  padding: 1rem;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  transition: transform 0.2s;
}

.featured-card:hover {
  transform: translateY(-4px);
}

.featured-card h3 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.featured-card p {
  color: #555;
  margin-bottom: 1rem;
}

.featured-link {
  color: #007acc;
  font-weight: 600;
  text-decoration: none;
}

.featured-link:hover {
  text-decoration: underline;
}

.tag {
  display: inline-block;
  background: #f0f0f0;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  margin-right: 6px;
  margin-bottom: 6px;
}

.pagination a {
  padding: 8px 14px;
  margin: 0 4px;
  border-radius: 10px;
  background: #f0f0f0;
  text-decoration: none;
  color: #333;
}

.pagination a.active {
  background: #222;
  color: #fff;
}

.rss-subscribe { text-align: center; }

.rss-subscribe a {
  color: #007acc;
  font-weight: 600;
  text-decoration: none;
}

.rss-subscribe a:hover {
  text-decoration: underline;
}

.header-logo {
  width: 64px; /* adjust to taste */ 
  height: auto; 
  display: block;
}

.footer-logo {
  width: 32px; /* adjust to taste */ 
  height: auto; 
  vertical-align: middle; 
}

.footer-logo-link {
  display: inline-flex; 
  align-items: center; 
}