/* ==========================================================================
   Deep Nude Free — Authentic 2000-2005 Retro Web Directory
   Preserving 100% of the Original Architecture & IDs with Pixel-Perfect Alignment
   Zero External Dependencies • Pure Vanilla CSS • Ultra High Performance
   ========================================================================== */

:root {
  --main-radius: 6px;
  --main-padding: 6px;
  
  /* Authentic 2000s Aqua & Trellis Palette */
  --clr-aqua-header: #0288d1;
  --clr-aqua-bg: #e1f5fe;
  --clr-aqua-border: #0277bd;
  --clr-box-cyan: #00bcd4;
  --clr-box-light: #b3e5fc;
  --clr-strip-blue: #e0f2fe;
  --clr-strip-cyan: #00acc1;

  --clr-text-title: #002b49;
  --clr-text-red: #c62828;
  --clr-text-dark: #1e293b;

  --font-retro: "Courier New", Courier, monospace, system-ui;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --transition: all 0.2s ease;
}

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

body {
  background-image: url('../img/bg.jpg');
  background-repeat: repeat;
  background-attachment: fixed;
  font-family: var(--font-retro);
  color: var(--clr-text-dark);
  padding: 12px;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

/* ==========================================================================
   MAIN 4-COLUMN GRID (Pixel-Perfect Proportions)
   ========================================================================== */
.container {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px 1fr 1fr 200px;
  grid-template-areas:
    "nav nav nav nav"
    "sidebar main main main"
    "content1 content2 content2 forads"
    "content3 content3 content3 content3"
    "footer footer footer footer";
  grid-gap: 12px;
  font-size: 13px;
  font-weight: bold;
  text-align: center;
}

/* ==========================================================================
   HEADER BANNER (nav)
   ========================================================================== */
nav {
  grid-area: nav;
  background: linear-gradient(180deg, #e1f5fe 0%, #b3e5fc 50%, #81d4fa 100%);
  border: 2px solid var(--clr-aqua-border);
  border-radius: var(--main-radius);
  padding: 16px 20px;
  font-size: 36px;
  font-weight: 900;
  color: #01579b;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 1px 1px 0 #fff, 2px 2px 0 rgba(0, 0, 0, 0.12);
  font-family: Georgia, "Times New Roman", serif;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* ==========================================================================
   TOP-LEFT SIDEBAR (Anime GIF Banner)
   ========================================================================== */
#sidebar {
  grid-area: sidebar;
  background: #ffffff;
  border: 2px solid var(--clr-aqua-border);
  border-radius: var(--main-radius);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  min-height: 200px;
}

#sidebar img {
  width: 100%;
  height: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

/* ==========================================================================
   TOP-RIGHT CAMERAS GRID (main.ver)
   ========================================================================== */
main.ver {
  grid-area: main;
  background: rgba(225, 245, 254, 0.7);
  border: 2px solid var(--clr-aqua-border);
  border-radius: var(--main-radius);
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  align-items: stretch;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.box {
  background: linear-gradient(180deg, #b3e5fc 0%, #81d4fa 100%);
  border: 1px solid #4fc3f7;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 4px;
  min-height: 90px;
  transition: var(--transition);
  box-shadow: inset 1px 1px 0 #fff, 0 2px 4px rgba(0, 0, 0, 0.08);
}

.box:hover {
  background: linear-gradient(180deg, #81d4fa 0%, #4fc3f7 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(2, 136, 209, 0.3);
}

.box a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.box img {
  max-width: 48px;
  max-height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.15));
}

/* ==========================================================================
   LEFT COLUMN: 14 RETRO BUTTONS (content1)
   ========================================================================== */
#content1 {
  grid-area: content1;
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid var(--clr-aqua-border);
  border-radius: var(--main-radius);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.box1 {
  background: linear-gradient(180deg, #e1f5fe 0%, #b3e5fc 100%);
  border: 1px solid #4fc3f7;
  border-radius: 4px;
  padding: 8px 10px;
  font-size: 13.5px;
  font-weight: 800;
  text-align: center;
  box-shadow: inset 1px 1px 0 #fff, 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: var(--transition);
}

.box1 a {
  color: #01579b;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.box1:hover {
  background: #0288d1;
  border-color: #01579b;
  transform: translateX(2px);
}

.box1:hover a {
  color: #ffffff;
}

/* ==========================================================================
   CENTER COLUMN: ALTERNATING MESSAGE STRIPS (content2)
   ========================================================================== */
#content2 {
  grid-area: content2;
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid var(--clr-aqua-border);
  border-radius: var(--main-radius);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.box2, .box3 {
  border-radius: 4px;
  padding: 8px 12px;
  text-align: left;
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.box-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

.url-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-retro);
  font-size: 11px;
  font-weight: 700;
  color: #01579b;
  background: rgba(2, 136, 209, 0.12);
  border: 1px solid rgba(2, 136, 209, 0.35);
  padding: 2px 7px;
  border-radius: 4px;
  text-decoration: none;
  transition: var(--transition);
}

.url-pill:hover {
  background: #0288d1;
  color: #ffffff;
  border-color: #01579b;
}

/* Light Blue Strip */
.box2 {
  background: #e1f5fe;
  border-left: 4px solid #0288d1;
}

.box2:hover {
  background: #b3e5fc;
}

/* Cyan Strip */
.box3 {
  background: #b2ebf2;
  border-left: 4px solid #00838f;
}

.box3:hover {
  background: #80deea;
}

.box2 a.box-title, .box3 a.box-title,
.box2 a, .box3 a {
  font-size: 14.5px;
  font-weight: 900;
  color: var(--clr-text-title);
  display: inline-block;
}

.box2:hover a.box-title, .box3:hover a.box-title {
  color: var(--clr-text-red);
  text-decoration: underline;
}

.fortext {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--clr-text-red);
  line-height: 1.35;
  font-family: var(--font-sans);
}

/* ==========================================================================
   RIGHT COLUMN: AVATAR PROFILES & ADS (forads)
   ========================================================================== */
#forads {
  grid-area: forads;
  background: rgba(225, 245, 254, 0.85);
  border: 2px solid var(--clr-aqua-border);
  border-radius: var(--main-radius);
  padding: 8px 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.img1 {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.img1 a {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #ffffff;
  border: 1px solid #81d4fa;
  border-radius: 6px;
  padding: 8px 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.img1 a:hover {
  background: #e1f5fe;
  border-color: #0288d1;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(2, 136, 209, 0.2);
}

.img1 img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  margin-bottom: 4px;
}

.img1 p {
  font-size: 11px;
  font-weight: 800;
  color: #01579b;
  text-align: center;
  line-height: 1.2;
}

/* ==========================================================================
   BOTTOM TABLE: RETRO WEB DIRECTORY (content3)
   ========================================================================== */
#content3 {
  grid-area: content3;
  background: #ffffff;
  border: 2px solid var(--clr-aqua-border);
  border-radius: var(--main-radius);
  padding: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  text-align: left;
}

#content3 table {
  width: 100%;
  border-collapse: collapse;
}

#content3 tbody tr {
  border-bottom: 1px solid #e0e0e0;
  transition: var(--transition);
}

#content3 tbody tr:nth-child(even) {
  background: #f1f8e9;
}

#content3 tbody tr:nth-child(odd) {
  background: #ffffff;
}

#content3 tbody tr:hover {
  background: #e1f5fe;
}

#content3 td {
  padding: 8px 12px;
  vertical-align: middle;
}

#content3 td:first-child {
  width: 250px;
  font-weight: 800;
  font-size: 13.5px;
}

#content3 td:first-child a {
  color: #01579b;
}

#content3 td:first-child a:hover {
  color: var(--clr-text-red);
  text-decoration: underline;
}

#content3 td.fortext {
  font-size: 12px;
  color: var(--clr-text-red);
  font-family: var(--font-sans);
  font-weight: 500;
}

/* ==========================================================================
   FOOTER (footer)
   ========================================================================== */
footer {
  grid-area: footer;
  background: #e1f5fe;
  border: 2px solid var(--clr-aqua-border);
  border-radius: var(--main-radius);
  padding: 14px;
  font-size: 11.5px;
  color: #37474f;
  line-height: 1.6;
  text-align: center;
}

footer a {
  color: #01579b;
  font-weight: 700;
}

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

/* ==========================================================================
   RESPONSIVE DESIGN (Tablets & Mobile)
   ========================================================================== */
@media (max-width: 1024px) {
  .container {
    grid-template-columns: 220px 1fr 160px;
    grid-template-areas:
      "nav nav nav"
      "sidebar main main"
      "content1 content2 forads"
      "content3 content3 content3"
      "footer footer footer";
  }
  main.ver {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    grid-template-columns: 1fr;
    grid-template-areas:
      "nav"
      "sidebar"
      "main"
      "content1"
      "content2"
      "forads"
      "content3"
      "footer";
  }
  main.ver {
    grid-template-columns: repeat(3, 1fr);
  }
}