/* ------------------------------
   Silicon Valley DJ — Main Styles
   Modern Classic Hybrid Refresh
   ------------------------------ */

/* Reset & base styles */
html, body {
  margin: 0;
  padding: 0;
  font-family: "Lato", "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  color: #222;
  background-image: url('/img/svdjbackground.jpg');
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-position: center;
  line-height: 1.6;
}

/* Layout container */
.layout {
  display: flex;
  flex-wrap: nowrap;
  max-width: 1400px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  overflow: hidden;
}

/* Sidebar */
.sidebar {
  flex: 0 0 300px;
  background-color: rgba(30, 30, 30, 0.85);
  color: #f5f5f5;
  padding: 2rem 1.5rem;
  text-align: center;
}

.sidebar img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.sidebar img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

/* Sidebar Nav */
.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 1rem 0 2rem 0;
}

.sidebar-nav li {
  margin: 0.8rem 0;
}

.sidebar-nav a {
  color: #f5f5f5;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  color: #ffd700;
  text-shadow: 0 0 6px rgba(255, 215, 0, 0.7);
}

/* Sidebar About section */
.sidebar-about {
  background-color: rgba(255,255,255,0.1);
  padding: 1rem;
  border-radius: 6px;
  font-size: 0.95rem;
  color: #e0e0e0;
}

.sidebar-about h3 {
  color: #fff;
  font-size: 1.2rem;
  margin-top: 0;
}

/* Main content area */
#main-content {
  flex: 1;
  padding: 2rem 3rem;
  background-color: rgba(255, 255, 255, 0.95);
}

/* Headings */
h1, h2, h3, h4, h5 {
  font-family: "Lato", "Segoe UI", Roboto, sans-serif;
  color: #222;
  line-height: 1.3;
  margin-bottom: 0.75em;
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
}

.breadcrumbs a {
  color: #0073aa;
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

/* Posts */
.post-content img,
.page-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1rem 0;
}

.post-meta {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.post-divider {
  border: none;
  border-top: 1px solid #ddd;
  margin: 2rem 0;
}

/* Footer */
footer.FOOTERTEXT {
  text-align: center;
  padding: 1.5rem 1rem;
  color: #fff;
  background: rgba(20, 20, 20, 0.9);
  font-size: 0.9rem;
  line-height: 1.5;
}

footer.FOOTERTEXT a {
  color: #ffd700;
  text-decoration: none;
}

footer.FOOTERTEXT a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 900px) {
  .layout {
    flex-direction: column;
  }

  .sidebar {
    flex: 1;
    padding: 1.5rem;
  }

  #main-content {
    padding: 1.5rem;
  }
}

/* Buttons (optional future use) */
button, .btn {
  background-color: #222;
  color: #fff;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

button:hover, .btn:hover {
  background-color: #444;
  transform: translateY(-2px);
}

/* Subtle animations for links/images */
a, img {
  transition: all 0.2s ease-in-out;
}
/* === Refinements: Transparency, Sidebar, and Logo Placement === */

/* Body background stays visible through subtle transparency */
.layout,
#main-content,
.sidebar {
  background-color: rgba(255, 255, 255, 0.28); /* slightly see-through */
}

/* Sidebar: lighter and cleaner — a touch darker than main body */
.sidebar {
  background-color: rgba(180, 180, 180, 0.60);
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Sidebar text + link tweaks for readability */
.sidebar-nav a,
.sidebar-about {
  color: #222;
}

.sidebar-nav a:hover {
  color: #006400;
  font-weight: bold;
}

/* Logo alignment fix */
#logo {
  text-align: center;
  padding-top: 20px;       /* adds space above */
  margin-bottom: 10px;
}

#logo img {
  max-width: 90%;
  height: auto;
  border-radius: 4px;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Optional: background blur under transparent elements */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  backdrop-filter: blur(3px);
  z-index: -1;
}

/* Footer and breadcrumbs soften to match new tones */
footer,
.FOOTERTEXT {
  background-color: rgba(255, 255, 255, 0.85);
  border-radius: 8px;
}

.breadcrumbs {
  background-color: rgba(255, 255, 255, 0.75);
  padding: 6px 10px;
  border-radius: 4px;
}
/* === Link color and text visibility fixes === */

/* Normal links across all areas */
a {
  color: #004400;
  text-decoration: none;
}

/* Hover */
a:hover {
  color: #007700;
  text-decoration: underline;
  font-weight: bold;
}

/* Visited (no ugly yellow) */
a:visited {
  color: #004400;
}

/* Sidebar text contrast fix */
.sidebar,
.sidebar * {
  color: #222 !important;
}

/* Main content paragraphs stay dark */
#main-content,
#main-content * {
  color: #222;
}

/* Breadcrumb contrast */
.breadcrumbs a,
.breadcrumbs span {
  color: #222;
}

/* Prevent faint or white text on transparent backgrounds */
body,
.layout,
footer,
.FOOTERTEXT {
  color: #222;
}
