/* 
   jhoodz.com - Est. 1998 Community Hub
   Authentic Late 90s Netscape Era Web Design
*/

@import url('https://fonts.googleapis.com/css2?family=VT323&family=Trebuchet+MS&display=swap');

:root {
  --bg-dark: #090714;
  --bg-card: rgba(14, 10, 32, 0.16);
  --border-purple: rgba(120, 95, 180, 0.45);
  --border-glow: #6c579e;
  --text-gold: #f5d061;
  --text-gold-light: #fff2a1;
  --text-cyan: #70c3ff;
  --text-light: #ffffff;
  --text-muted: #c0bce0;
  --header-blue-bg: linear-gradient(180deg, rgba(27, 38, 79, 0.35) 0%, rgba(16, 22, 51, 0.35) 100%);
}

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

body {
  background-color: var(--bg-dark);
  background-image: 
    linear-gradient(rgba(9, 7, 20, 0.15), rgba(9, 7, 20, 0.35)),
    url("assets/images/hero.jpg");
  background-size: cover;
  background-position: center 0px;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--text-light);
  font-family: 'Trebuchet MS', Geneva, Verdana, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  min-height: 100vh;
  padding: 15px;
  overflow-x: hidden;
}

/* App Wrapper */
.app-container {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: relative;
}

/* Main Layout: Left Sidebar + Right Grid */
.main-layout {
  display: flex;
  gap: 15px;
  margin-top: 235px;
}

/* Left Sidebar Navigation */
.sidebar-nav {
  width: 250px;
  flex-shrink: 0;
  background: var(--bg-card);
  border: 2px solid var(--border-purple);
  border-radius: 12px;
  padding: 18px 12px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow: 
    inset 0 0 10px rgba(80, 50, 140, 0.1),
    0 4px 20px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 10px;
  color: var(--text-gold);
  text-decoration: none;
  font-weight: bold;
  font-size: 1.15rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.9), 0 0 8px rgba(0,0,0,0.8);
  border-radius: 6px;
  transition: all 0.2s ease;
  letter-spacing: 0.5px;
}

.nav-item:hover {
  background: rgba(110, 80, 180, 0.35);
  color: var(--text-gold-light);
  transform: translateX(4px);
  text-shadow: 0 0 10px rgba(255, 242, 161, 0.9), 0 1px 3px #000;
}

.nav-icon {
  font-size: 1.25rem;
  width: 24px;
  text-align: center;
  filter: drop-shadow(0 0 3px rgba(120, 100, 220, 0.8));
}

/* Content Grid Layout */
.content-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

/* Retro Card Base Component */
.card-box {
  background: var(--bg-card);
  border: 2px solid var(--border-purple);
  border-radius: 12px;
  padding: 14px 16px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow: 
    inset 0 0 10px rgba(90, 60, 160, 0.1),
    0 4px 16px rgba(0, 0, 0, 0.5);
  position: relative;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-family: 'Trebuchet MS', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 1px 1px 3px #000;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Specific Card Spans in 12-Column Grid */
.card-welcome {
  grid-column: span 8;
  grid-row: span 1;
}

.card-local-news {
  grid-column: span 4;
}

.card-latest-news {
  grid-column: span 4;
}

.card-gallery {
  grid-column: span 4;
  grid-row: span 2;
}

.card-street-team {
  grid-column: span 4;
}

.card-neighborhood {
  grid-column: span 4;
}

.card-forums {
  grid-column: span 4;
}

.card-about {
  grid-column: span 4;
}

.card-city-services {
  grid-column: span 4;
}

.card-guestbook {
  grid-column: span 4;
}

.card-platforms {
  grid-column: span 12;
}

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 6px;
}

.platform-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(30, 22, 60, 0.25);
  border: 1px solid var(--border-purple);
  border-radius: 6px;
  padding: 8px 12px;
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: bold;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: all 0.2s ease;
  box-shadow: 1px 1px 4px rgba(0,0,0,0.4);
  text-shadow: 0 1px 3px rgba(0,0,0,0.9);
}

.platform-badge:hover {
  background: rgba(59, 44, 105, 0.55);
  border-color: var(--text-cyan);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.8), 0 0 8px rgba(112, 195, 255, 0.5);
}

.platform-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 2px rgba(255,255,255,0.3));
}

/* Card 1: Welcome / Hero Feature */
.hero-content-wrapper {
  display: flex;
  gap: 15px;
  align-items: stretch;
  height: 100%;
}

.hero-media-box {
  flex: 1.1;
  background: #000;
  border: 1px solid #3d2f60;
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
}

.hero-image {
  width: 100%;
  max-height: 140px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #4a3c70;
}

.hero-caption-title {
  color: #ffffff;
  font-family: 'Trebuchet MS', sans-serif;
  font-size: 1.3rem;
  font-weight: 900;
  margin-top: 6px;
  text-shadow: 0 0 6px #ffffff;
  letter-spacing: 0.5px;
}

.hero-caption-sub {
  color: #a6c0ed;
  font-size: 0.82rem;
  font-style: italic;
}

.hero-text-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.hero-heading {
  color: var(--text-gold);
  font-size: 1.15rem;
  font-weight: bold;
  margin-bottom: 8px;
  text-shadow: 1px 1px 2px #000;
}

.hero-desc {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.45;
}

.sparkle-icon {
  position: absolute;
  bottom: 0;
  right: 0;
  color: #b0c4de;
  font-size: 1.2rem;
  opacity: 0.7;
}

/* Card 2: Local News */
.news-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.news-list li {
  position: relative;
  padding-left: 14px;
  font-weight: bold;
  font-size: 0.88rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.35;
}

.news-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #ffffff;
  font-size: 1.1rem;
}

/* Card 3: Latest News */
.latest-news-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.highlight-yellow-bold {
  color: var(--text-gold-light);
  font-weight: 800;
  font-size: 1.05rem;
  text-shadow: 0 0 5px rgba(255, 242, 161, 0.4);
}

.highlight-date {
  color: var(--text-gold);
  font-size: 0.95rem;
  font-weight: bold;
}

.subtext-fall {
  color: var(--text-light);
  font-size: 0.92rem;
  margin-top: 4px;
}

/* Card 4: Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.gallery-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.gallery-thumb {
  width: 100%;
  height: 95px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #4a3b75;
  transition: transform 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

.gallery-thumb:hover {
  transform: scale(1.04);
  border-color: var(--text-cyan);
}

.gallery-caption {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* Card 5: Street Team */
.street-team-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

}

.street-team-text {
  font-size: 1rem;
  font-weight: bold;
  color: var(--text-light);
  max-width: 130px;
}

.avatar-wrapper {
  position: relative;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle, #7e38b7 0%, transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--text-gold);
}

.street-team-link-row {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
}

.street-team-link {
  color: var(--text-cyan);
  text-decoration: underline;
  cursor: pointer;
}

.street-team-link:hover {
  color: #ffffff;
}

.badge-new {
  background: linear-gradient(130deg, #9b42f5, #6214a8);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #c48aff;
  box-shadow: 0 0 6px #9b42f5;
  animation: flash-badge 2s infinite alternate;
}

@keyframes flash-badge {
  0% { opacity: 0.85; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.08); }
}

/* Card 6: Neighborhood */
.bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bullet-list li {
  position: relative;
  padding-left: 14px;
  font-size: 0.9rem;
  color: var(--text-light);
}

.bullet-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #ffffff;
}

/* Card 7: Forums */
.forums-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.forum-link {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.15s ease;
}

.forum-link:hover {
  color: var(--text-gold);
  text-decoration: underline;
}

.forum-link-blue {
  color: var(--text-cyan);
}

/* Card 8: About Us */
.about-subhead {
  color: var(--text-gold);
  font-weight: bold;
  font-size: 0.98rem;
  margin-bottom: 6px;
}

.about-body {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.45;
}

/* Card 9: City Service Links */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-light);
}

.service-icon {
  font-size: 1.5rem;
  color: var(--text-cyan);
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}

/* Card 10: Guestbook */
.guestbook-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-row label {
  width: 65px;
  font-size: 0.88rem;
  color: var(--text-light);
}

.form-input, .form-textarea {
  flex: 1;
  background: #090714;
  border: 1px solid #4a3c70;
  border-radius: 4px;
  padding: 4px 8px;
  color: var(--text-gold-light);
  font-family: inherit;
  font-size: 0.85rem;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.8);
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--text-cyan);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.8), 0 0 5px var(--text-cyan);
}

.retro-btn {
  align-self: flex-start;
  margin-left: 65px;
  background: linear-gradient(180deg, #3d3460 0%, #201a38 100%);
  border: 2px outset #5b4f85;
  border-radius: 4px;
  color: var(--text-light);
  font-family: inherit;
  font-weight: bold;
  font-size: 0.85rem;
  padding: 3px 14px;
  cursor: pointer;
  box-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}

.retro-btn:active {
  border-style: inset;
  background: #201a38;
}

/* Footer Section */
.main-footer {
  margin-top: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  padding: 4px 0 10px;
  position: relative;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: underline;
}

.footer-link:hover {
  color: var(--text-light);
}

.hit-counter {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #000;
  border: 1px solid #4a3c70;
  padding: 1px 6px;
  border-radius: 3px;
  font-family: 'VT323', monospace;
  font-size: 1.1rem;
  color: #33ff33;
  letter-spacing: 2px;
  box-shadow: inset 0 0 5px #00ff00;
}

.footer-sparkle {
  font-size: 1.4rem;
  color: #7b71bb;
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.7;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  body {
    background-image: 
      linear-gradient(rgba(9, 7, 20, 0.15), rgba(9, 7, 20, 0.35)),
      url("assets/images/hero_mobile.jpg");
    background-position: center top;
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-attachment: scroll;
  }

  .main-layout {
    flex-direction: column;
    margin-top: clamp(80px, 24vw, 115px);
  }
  .sidebar-nav {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .nav-item {
    font-size: 0.95rem;
  }
  .card-welcome,
  .card-local-news,
  .card-latest-news,
  .card-gallery,
  .card-street-team,
  .card-neighborhood,
  .card-forums,
  .card-about,
  .card-city-services,
  .card-guestbook {
    grid-column: span 12;
    grid-row: span 1;
  }
}
