:root {
  --deep-orange: #F15A24;
  --bright-orange: #FFA000;
  --gold-yellow: #FFC107;
  --text-black: #111;
  --white: #ffffff;
  --light-gray: #f8f8f8;
  --shadow-color: rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: repeating-linear-gradient(-45deg, #dfdfdf, #dfdfdf 10px, #ededed 50px, #ededed 50px);
  color: var(--text-black);
  line-height: 1.6;
  margin: 0;
  position: relative;
  min-height: 100vh;
  display: block;
}

.sidebar {
  width: 250px;
  height: 100vh;
  background-color: var(--white);
  position: fixed;
  top: 0;
  left: 0;
  padding: 2rem 0;
  box-shadow: 2px 0 10px rgba(0,0,0,0.1);
  border-right: 1px solid rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1000; /* Higher than sections to overlay them */
  overflow-y: auto;
}

.logo {
  cursor: pointer;
  text-align: center;
}

/* Desktop logo size */
.logo img {
  max-width: 230px;
  height: auto;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
}

nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 80%;
}

nav a {
  background: linear-gradient(to right, var(--deep-orange), var(--bright-orange));
  color: var(--white);
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav a:hover {
  background: var(--gold-yellow);
  color: var(--deep-orange);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Sidebar Social Icons */
.sidebar-social {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
  width: 80%;
  padding: 15px;
  background: rgba(255, 255, 255, 0.87);
  border-radius: 10px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.sidebar-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #993300, #FF8C00);
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.sidebar-social a i {
  font-size: 18px;
}

.sidebar-social a:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 5px 15px rgba(153, 51, 0, 0.4);
}

.sidebar-social a:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.5), 0 5px 15px rgba(153, 51, 0, 0.4);
}

.main-content {
  width: 100%;
  padding-left: 0; /* Removed sidebar spacing */
  background: transparent;
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  position: relative;
  z-index: 1;
  display: block;
  clear: both;
}

.main-content .container {
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto 2rem auto;
}

.container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 1rem;
}

.article {
  position: relative;
  border-radius: 12px;
  box-shadow: 0 8px 20px var(--shadow-color);
  margin-bottom: 2.5rem;
  overflow: hidden;
  background-color: var(--white);
  transition: all 0.3s ease;
  border-left: 4px solid var(--deep-orange);
}

.article:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.article-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
}

.article::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--deep-orange), var(--bright-orange));
}

.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: bold;
  color: var(--white);
  background: linear-gradient(to right, var(--deep-orange), var(--bright-orange));
  border-radius: 30px;
  padding: 0.4rem 1.2rem;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.headline {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-black);
  line-height: 1.3;
}

.content {
  color: #444;
  margin-top: 1rem;
  font-size: 1.05rem;
}

.content a {
  color: var(--bright-orange);
  font-weight: bold;
  text-decoration: none;
  position: relative;
  transition: all 0.2s ease;
}

.content a:hover {
  color: var(--deep-orange);
}

.content a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -2px;
  left: 0;
  background: linear-gradient(to right, var(--deep-orange), var(--bright-orange));
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease;
}

.content a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Houseguest Section Styles */
.houseguest-section {
  margin-left: 0;
  width: 100%;
  background: linear-gradient(to right, rgb(0 0 0 / 93%), rgb(0 0 0 / 76%));
  padding: 10px 0;
  overflow: hidden;
  position: relative;
  z-index: -4; /* Higher than navigation tabs */
  box-sizing: border-box;
  max-height: 200px;
  margin-top: -10px; /* Pull up to connect with tabs */
  margin-bottom: 0;
  display: block;
  clear: both;
}

.houseguest-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: max-content; /* Allow container to be wider than viewport */
  overflow-x: auto; /* Enable horizontal scrolling */
  padding: 20px;
  gap: 15px; /* Space between images */
  animation: scroll-houseguests 30s linear infinite; /* Slow continuous scroll */
  background: transparent;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

@keyframes scroll-houseguests {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%); /* Move to show second set of images */
  }
}

.houseguest-img {
  height: 150px; /* Larger, more normal size */
  width: auto;
  margin: 0;
  transition: box-shadow 0.3s ease;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.houseguest-img:hover {
  z-index: 10;
  box-shadow: 0 0 15px 5px rgba(255, 215, 0, 0.7); /* Yellow glow */
}

/* Ribbon Styles */
.houseguest-img-container {
  position: relative;
  display: inline-block;
  margin: 0 8px;
  height: 150px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: box-shadow 0.3s ease;
}

.houseguest-img-container:hover {
  z-index: 10;
  box-shadow: 0 0 15px 5px rgba(255, 215, 0, 0.7); /* Yellow glow */
}

.hoh-ribbon {
  position: absolute;
  top: 0;
  left: 0;
  background-color: #ff0000;
  color: white;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: bold;
  border-top-left-radius: 8px;
  border-bottom-right-radius: 8px;
  z-index: 5;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}

.nominated-ribbon {
  position: absolute;
  top: 0;
  left: 0;
  background-color: #000000;
  color: white;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: bold;
  border-top-left-radius: 8px;
  border-bottom-right-radius: 8px;
  z-index: 5;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}

.pov-ribbon {
  position: absolute;
  top: 0;
  right: 0;
  background-color: #FFD700;
  color: black;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: bold;
  border-top-right-radius: 8px;
  border-bottom-left-radius: 8px;
  z-index: 5;
  box-shadow: -2px 2px 5px rgba(0,0,0,0.3);
}

.saved-ribbon {
  position: absolute;
  top: 0;
  left: 0;
  background-color: #A9A9A9;
  color: white;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: bold;
  border-top-left-radius: 8px;
  border-bottom-right-radius: 8px;
  z-index: 5;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}

.bbsave-ribbon {
  position: absolute;
  top: 0;
  left: 0;
  background-color: #6699CC;
  color: white;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: bold;
  border-top-left-radius: 8px;
  border-bottom-right-radius: 8px;
  z-index: 5;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}

.evicted-ribbon {
  position: absolute;
  top: 0;
  left: 0;
  background-color: #FF8C00;
  color: white;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: bold;
  border-top-left-radius: 8px;
  border-bottom-right-radius: 8px;
  z-index: 5;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}

.evicted-img {
  filter: grayscale(100%);
  opacity: 0.8;
}

.evicted-container {
  filter: grayscale(100%);
  opacity: 0.8;
}

.name-plate {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #000000;
  color: white;
  padding: 4px 0;
  font-size: 12px;
  font-weight: bold;
  text-align: center;
  z-index: 5;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.3);
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Breaking News Section - TMZ Style */
.breaking-news-section {
  width: 100%;
  background-color: transparent;
  padding: 0;
  overflow: hidden;
  position: relative;
  z-index: 0;
  margin-top: 0;
  margin-bottom: 2rem;
  margin-left: 0;
  border-top: none;
  border-bottom: none;
  display: block;
  clear: both;
}

.main-header {
  background: rgba(255, 255, 255, 0.8);
  position: relative;
  z-index: 1000;
  width: 100%;
  margin-bottom: -1px; /* Connect tabs to content below */
}

.breaking-news-section .container {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.breaking-news-headline {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start; /* Left-aligned */
  padding: 0.5rem 1rem;
  gap: 1.5rem; /* Space between image and content */
  opacity: 1;
  transition: opacity 0.5s ease;
}

.breaking-news-image {
  flex: 0 0 auto;
  width: 120px;
  height: 120px;
  overflow: hidden;
  border: 2px solid #ff0000; /* Red border around image */
}

.breaking-news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.breaking-news-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.breaking-label {
  display: inline-block;
  background-color: #ff0000;
  color: white;
  padding: 0.3rem 0.8rem;
  font-weight: bold;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  border-radius: 4px;
  letter-spacing: 1px;
}

/* Two-column layout styles */
.content-split {
  display: flex;
  flex-direction: row;
  gap: 2rem;
}

.articles-column {
  flex: 0 0 60%;
}

.bbonweb-column {
  flex: 0 0 40%;
  padding: 0;
  background-color: var(--white);
  border-radius: 10px;
  box-shadow: 0 2px 8px var(--shadow-color);
  overflow: hidden;
}

/* BB on Web Header */
.bbonweb-header-container {
  background: linear-gradient(to right, var(--deep-orange), var(--bright-orange));
  border-radius: 10px 10px 0 0;
  padding: 8px 0;
  margin-bottom: 8px;
  text-align: center;
}

.bbonweb-title {
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 2px 2px 0 #000;
}

.bbonweb-section {
  padding: 1rem;
}

.bbonweb-section h2 {
  color: var(--deep-orange);
  margin-bottom: 1rem;
  font-size: 1.8rem;
  border-bottom: 2px solid var(--gold-yellow);
  padding-bottom: 0.5rem;
}

.bbonweb-content {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.75rem;
}

.bbonweb-article {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.bbonweb-article:last-child {
  border-bottom: none;
}

.bbonweb-link {
  display: flex;
  align-items: flex-start;
  font-weight: bold;
  font-size: 1rem;
  text-decoration: none;
  color: var(--text-black);
  position: relative;
  transition: all 0.3s ease;
  line-height: 1.3;
}

.bbonweb-link .link-text {
  transition: all 0.3s ease;
  flex-grow: 1;
}

.bbonweb-link:hover .link-text {
  background: linear-gradient(to right, var(--deep-orange), var(--bright-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bbonweb-link::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -2px;
  left: 0;
  background: linear-gradient(to right, var(--deep-orange), var(--bright-orange));
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease;
}

.bbonweb-link:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.bbonweb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.3rem;
}

/* Source tag styling moved to source-tag.css */

.bbonweb-article .timestamp {
  display: block;
  font-size: 0.75rem;
  color: #777;
  font-style: italic;
  float: right;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .content-split {
    flex-direction: column;
  }
  
  .articles-column,
  .bbonweb-column {
    flex: 0 0 100%;
  }
}

.breaking-news-content h2 {
  color: white; /* White text on black background */
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.3;
  font-weight: bold;
}

/* Headlines */
.headline {
  font-size: 1.5rem;
  margin: 0.5rem 0;
  line-height: 1.3;
}

/* Flame Icon */
.flame-icon {
  color: var(--bright-orange);
  margin-right: 5px;
  animation: flicker 2s infinite alternate;
}

/* BB on Web Flame Icon */
.bullet-flame {
  flex-shrink: 0;
  width: 24px;
  margin-right: 8px;
  text-align: center;
}

.bbonweb-link .flame-icon {
  font-size: 2em;
  vertical-align: middle;
  display: inline-block;
  position: relative;
  top: -2px;
}

/* Ensure flame icon doesn't change on hover */
.bbonweb-link:hover .flame-icon {
  color: var(--bright-orange) !important;
}

@keyframes flicker {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

/* Mobile Logo Container - Hidden on desktop */
.logo-container {
  display: none; /* Hide on desktop by default */
}

/* Mobile logo styling - this will be applied in the media query */

/* Sidebar toggle button */
#sidebar-toggle {
  display: none;
  background: linear-gradient(135deg, #993300, #FF8C00); /* Burnt orange gradient */
  color: white;
  border: none;
  border-radius: 4px;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
  margin-right: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

#sidebar-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

/* Mobile Responsive Styles */
@media (max-width: 900px) {
  .sidebar {
    display: none;
    position: fixed;
    top: 70px; /* Below the mobile logo */
    left: 0;
    width: 100%;
    height: auto;
    max-height: 0;
    overflow: hidden;
    border-right: none;
    border-bottom: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background-color: var(--white);
    transition: max-height 0.3s ease;
    z-index: 999;
  }
  
  .sidebar.active {
    display: flex;
    max-height: 100vh;
    overflow-y: auto;
    padding-bottom: 20px;
  }
  
  #sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .logo-container {
    display: flex; /* Show on mobile */
    justify-content: center;
    align-items: center;
    padding: 0.5rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }
  
  /* Mobile logo size */
  .logo img,
  #mobile-logo img {
    max-width: 110px !important; /* Explicitly override desktop size */
    height: auto;
  }
  
  .main-content {
    padding-left: 0;
    width: 100%;
    padding: 1rem;
  }
  
  .breaking-news-section {
    width: 100%;
    margin-left: 0;
    margin-top: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scrolling */
  }
  
  nav {
    margin-top: 50px; /* Space below the logo */
  }
  
  .article {
    margin-bottom: 2rem;
  }
  
  .headline {
    font-size: 1.5rem;
  }
}

@media (max-width: 500px) {
  .main-content {
    padding: 1rem;
  }
  
  .article-content {
    padding: 1.5rem;
  }
  
  .headline {
    font-size: 1.35rem;
  }
  
  .content {
    font-size: 1rem;
  }
}
