/* aynet.org — 90s retro IRC / mobil sohbet teması */

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

html {
  background: #0a0a18;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  color: #e8e8f0;
  font-family: Tahoma, Verdana, "MS Sans Serif", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.45;
  overflow-x: hidden;
  background-color: #0a0a18;
  background-image:
    radial-gradient(1px 1px at 12px 18px, #fff 40%, transparent 41%),
    radial-gradient(1px 1px at 48px 72px, #bbb 40%, transparent 41%),
    radial-gradient(1px 1px at 92px 34px, #fff 40%, transparent 41%),
    radial-gradient(1px 1px at 140px 96px, #888 40%, transparent 41%),
    radial-gradient(1px 1px at 180px 22px, #ddd 40%, transparent 41%),
    radial-gradient(1px 1px at 210px 110px, #fff 40%, transparent 41%),
    radial-gradient(1px 1px at 250px 55px, #999 40%, transparent 41%),
    radial-gradient(1px 1px at 280px 140px, #ccc 40%, transparent 41%),
    radial-gradient(1px 1px at 320px 40px, #fff 40%, transparent 41%),
    radial-gradient(1px 1px at 360px 88px, #aaa 40%, transparent 41%),
    radial-gradient(1.5px 1.5px at 30px 150px, #fff 40%, transparent 41%),
    radial-gradient(1px 1px at 70px 200px, #bbb 40%, transparent 41%),
    radial-gradient(1px 1px at 160px 180px, #fff 40%, transparent 41%),
    radial-gradient(1px 1px at 240px 220px, #888 40%, transparent 41%),
    radial-gradient(1px 1px at 300px 170px, #ddd 40%, transparent 41%),
    radial-gradient(1px 1px at 380px 210px, #fff 40%, transparent 41%);
  background-size: 400px 240px;
  background-repeat: repeat;
}

a {
  color: #99ccff;
  text-decoration: underline;
}

a:hover {
  color: #ffff66;
}

a:visited {
  color: #bb88ff;
}

.wrap {
  width: 960px;
  max-width: 100%;
  margin: 0 auto;
  padding: 12px 8px 24px;
}

/* ── Header ── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 8px 14px;
  border: 1px solid #556;
  background: rgba(10, 10, 30, 0.72);
  margin-bottom: 10px;
}

.header-icon {
  width: 88px;
  height: 80px;
  flex-shrink: 0;
  image-rendering: pixelated;
}

.header-brand {
  flex: 1;
  text-align: center;
}

.logo {
  display: inline-block;
  font-family: Impact, "Arial Black", Haettenschweiler, sans-serif;
  font-size: 56px;
  line-height: 1;
  letter-spacing: 1px;
  text-decoration: none;
  user-select: none;
}

.logo:visited,
.logo:hover {
  text-decoration: none;
}

.logo-ay {
  color: #e8e8ff;
  text-shadow:
    0 1px 0 #b8b8e8,
    0 2px 0 #9898c8,
    0 3px 0 #7878a8,
    0 4px 0 #585888,
    2px 5px 0 #383868,
    0 0 14px rgba(200, 200, 255, 0.5);
  -webkit-text-stroke: 1px #c8c8ff;
}

.logo-net {
  color: #bb66ff;
  text-shadow:
    0 1px 0 #9944dd,
    0 2px 0 #7733bb,
    0 3px 0 #552299,
    0 4px 0 #441177,
    2px 5px 0 #330066,
    0 0 12px rgba(187, 102, 255, 0.45);
  -webkit-text-stroke: 1px #dd99ff;
}

.tagline {
  margin-top: 8px;
  color: #ccbbff;
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.5px;
  text-shadow: 0 0 8px rgba(187, 136, 255, 0.4);
}

/* ── Layout ── */
.layout {
  display: grid;
  grid-template-columns: 200px 1fr 190px;
  gap: 10px;
  align-items: start;
}

/* ── Boxes ── */
.box {
  border: 2px double #778;
  background: rgba(10, 10, 30, 0.82);
  margin-bottom: 10px;
}

.box-title {
  display: block;
  text-align: center;
  color: #bb88ff;
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 1px;
  padding: 6px 6px 4px;
  border-bottom: 1px solid #445;
  text-shadow: 0 0 8px rgba(187, 136, 255, 0.35);
}

.box-body {
  padding: 8px 10px 10px;
}

/* ── Menu ── */
.menu-list {
  list-style: none;
}

.menu-list li {
  margin: 3px 0;
}

.menu-list a {
  color: #eeeeee;
  text-decoration: none;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  display: inline-block;
}

.menu-list a::before {
  content: "☽";
  color: #ffdd66;
  margin-right: 6px;
  font-size: 10px;
}

.menu-list a:hover {
  color: #ffff66;
  text-decoration: underline;
}

.menu-list a.active {
  color: #ffff66;
  text-decoration: underline;
}

/* ── Server info ── */
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
}

.info-table td {
  padding: 2px 0;
  vertical-align: top;
}

.info-table .label {
  color: #99bbff;
  white-space: nowrap;
  padding-right: 4px;
}

.info-table .value {
  color: #ffffff;
}

.info-table .value a {
  color: #88bbff;
  text-decoration: none;
}

.info-table .value a:hover {
  color: #bbccff;
  text-decoration: underline;
}

.status-online {
  color: #66ffaa !important;
  font-weight: bold;
  text-shadow: 0 0 6px rgba(102, 255, 170, 0.5);
}

/* ── News ── */
.news-list {
  list-style: none;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
}

.news-list li {
  margin-bottom: 8px;
  line-height: 1.35;
}

.news-date {
  color: #bb88ff;
  display: block;
  margin-bottom: 1px;
}

.news-text {
  color: #dddddd;
}

/* ── Welcome / main ── */
.welcome-title {
  color: #bb88ff;
  font-family: "Courier New", Courier, monospace;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 10px;
  text-shadow: 0 0 8px rgba(187, 136, 255, 0.4);
}

.welcome-text {
  color: #f0f0f0;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  text-align: center;
  margin-bottom: 14px;
  line-height: 1.55;
}

.moon-wrap {
  text-align: center;
  margin: 6px 0 4px;
}

.moon-wrap img {
  max-width: 100%;
  height: auto;
}

/* ── Channels ── */
.channels-title {
  color: #99ccff;
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  letter-spacing: 1px;
  margin-bottom: 10px;
  text-shadow: 0 0 6px rgba(153, 204, 255, 0.35);
}

.channels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px 10px;
  text-align: center;
}

.channels-grid a {
  color: #99ccff;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  text-decoration: none;
  padding: 3px 2px;
}

.channels-grid a:hover {
  color: #ffff66;
  text-decoration: underline;
}

/* ── Quick connect ── */
.quick-item {
  text-align: center;
  margin-bottom: 12px;
}

.quick-item img {
  display: block;
  margin: 0 auto 4px;
  image-rendering: pixelated;
}

.quick-item a {
  color: #99ccff;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
}

.mobil-btn {
  display: inline-block;
  margin-top: 6px;
  padding: 6px 12px;
  border: 2px outset #667;
  background: linear-gradient(180deg, #445 0%, #223 100%);
  color: #ffff99 !important;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  font-weight: bold;
  text-decoration: none !important;
}

.mobil-btn:hover {
  color: #fff !important;
  border-style: inset;
}

/* ── Guestbook ── */
.gb-entry {
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  margin-bottom: 8px;
  line-height: 1.35;
  word-break: break-word;
}

.gb-nick {
  font-weight: bold;
}

.nick-blue { color: #6699ff; }
.nick-orange { color: #ffaa55; }
.nick-green { color: #66ddaa; }
.nick-pink { color: #ff88cc; }
.nick-purple { color: #bb88ff; }

.gb-msg {
  color: #dddddd;
}

.gb-write {
  display: block;
  text-align: center;
  margin-top: 8px;
  color: #ffdd66 !important;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  font-weight: bold;
}

.gb-write:hover {
  color: #ffff66 !important;
}

/* ── Footer ── */
.site-footer {
  margin-top: 12px;
  border: 1px solid #556;
  background: rgba(10, 10, 30, 0.72);
  padding: 14px 10px 16px;
  text-align: center;
}

.footer-line {
  color: #cccccc;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  margin-bottom: 4px;
}

.footer-copy {
  color: #888888;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  margin-bottom: 12px;
}

.badge-mirc {
  display: inline-block;
  image-rendering: pixelated;
}

/* ── Page content ── */
.page-title {
  color: #bb88ff;
  font-family: "Courier New", Courier, monospace;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 12px;
  text-shadow: 0 0 8px rgba(187, 136, 255, 0.4);
}

.page-title.cyan {
  color: #99ccff;
  text-shadow: 0 0 8px rgba(153, 204, 255, 0.35);
}

.page-title.orange {
  color: #ffaa55;
  text-shadow: 0 0 8px rgba(255, 170, 85, 0.35);
}

.prose {
  color: #f0f0f0;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  line-height: 1.65;
  margin-bottom: 12px;
}

.prose p {
  margin-bottom: 10px;
}

.prose strong {
  color: #ffff99;
  font-weight: bold;
}

.prose code,
.cmd {
  color: #bbffcc;
  background: #0a1a1a;
  border: 1px solid #334444;
  padding: 1px 5px;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
}

.rules-list,
.help-list {
  list-style: none;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  margin: 8px 0 12px;
}

.rules-list li,
.help-list li {
  margin-bottom: 8px;
  padding-left: 14px;
  position: relative;
  color: #eeeeee;
  line-height: 1.5;
}

.rules-list li::before {
  content: "»";
  position: absolute;
  left: 0;
  color: #ffaa55;
}

.help-list li::before {
  content: "☽";
  position: absolute;
  left: 0;
  color: #ffdd66;
  font-size: 10px;
}

.channel-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 12px;
  margin-top: 8px;
}

.channel-card {
  border: 1px solid #556;
  padding: 8px;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
}

.channel-card a {
  color: #99ccff;
  font-size: 13px;
  font-weight: bold;
  text-decoration: none;
  display: block;
  margin-bottom: 4px;
}

.channel-card a:hover {
  color: #ffff66;
  text-decoration: underline;
}

.channel-card p {
  color: #bbbbbb;
  margin: 0;
  line-height: 1.4;
}

.links-list {
  list-style: none;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
}

.links-list li {
  margin-bottom: 10px;
  padding: 8px;
  border: 1px solid #445;
}

.links-list a {
  color: #99ccff;
  font-weight: bold;
  font-size: 13px;
  text-decoration: none;
}

.links-list a:hover {
  color: #ffff66;
  text-decoration: underline;
}

.links-list .link-desc {
  display: block;
  color: #aaaaaa;
  margin-top: 3px;
  font-size: 11px;
}

.contact-table {
  width: 100%;
  border-collapse: collapse;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  margin: 10px 0;
}

.contact-table td {
  padding: 6px 4px;
  border-bottom: 1px solid #334;
  color: #eeeeee;
}

.contact-table .label {
  color: #99bbff;
  width: 120px;
  white-space: nowrap;
}

/* ── Mobil giriş formu ── */
.login-box {
  max-width: 360px;
  margin: 0 auto;
}

.login-form label {
  display: block;
  color: #99bbff;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  margin-bottom: 4px;
}

.login-form input,
.login-form select {
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 10px;
  border: 2px inset #667;
  background: #111128;
  color: #ffff99;
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
}

.login-form input:focus,
.login-form select:focus {
  outline: 1px solid #bb88ff;
}

.login-form button {
  width: 100%;
  padding: 10px;
  border: 2px outset #778;
  background: linear-gradient(180deg, #553399 0%, #331166 100%);
  color: #fff;
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  text-shadow: 0 1px 2px #000;
}

.login-form button:hover {
  background: linear-gradient(180deg, #6644aa 0%, #442277 100%);
}

.login-form button:active {
  border-style: inset;
}

.login-note {
  text-align: center;
  font-size: 11px;
  color: #999;
  margin-top: 10px;
}

@keyframes moon-glow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.header-icon.moon {
  animation: moon-glow 2.4s ease-in-out infinite;
}

img {
  max-width: 100%;
  height: auto;
}

/* ── Responsive: tablet ── */
@media (max-width: 960px) {
  .wrap {
    width: 100%;
    padding: 10px 8px 20px;
  }

  .layout {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .col-center {
    grid-column: 1 / -1;
    order: -1;
  }

  .logo {
    font-size: 44px;
  }

  .header-icon {
    width: 72px;
    height: 66px;
  }

  .channels-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .channel-list {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── Responsive: mobile ── */
@media (max-width: 700px) {
  body {
    font-size: 13px;
  }

  .wrap {
    padding: 8px 6px 18px;
    padding-left: max(6px, env(safe-area-inset-left));
    padding-right: max(6px, env(safe-area-inset-right));
    padding-bottom: max(18px, env(safe-area-inset-bottom));
  }

  .site-header {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 10px 8px 12px;
  }

  .header-brand {
    order: -1;
    width: 100%;
    flex: none;
  }

  .header-icon {
    width: 56px;
    height: 50px;
  }

  .logo {
    font-size: clamp(28px, 10vw, 40px);
  }

  .logo-ay,
  .logo-net {
    -webkit-text-stroke-width: 0.5px;
  }

  .tagline {
    font-size: 11px;
    margin-top: 6px;
    padding: 0 4px;
    line-height: 1.35;
  }

  .layout {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .col-center {
    grid-column: auto;
    order: 0;
  }

  .col-left {
    order: 1;
  }

  .col-right {
    order: 2;
  }

  .menu-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 8px;
  }

  .menu-list li {
    margin: 0;
  }

  .menu-list a {
    display: block;
    padding: 8px 4px;
    font-size: 13px;
    min-height: 40px;
    line-height: 1.3;
    box-sizing: border-box;
  }

  .box-title {
    font-size: 13px;
    padding: 8px 6px 6px;
  }

  .box-body {
    padding: 10px;
  }

  .welcome-title,
  .page-title {
    font-size: 15px;
    line-height: 1.35;
    padding: 0 2px;
  }

  .welcome-text,
  .prose {
    font-size: 13px;
    text-align: left;
    line-height: 1.6;
  }

  .moon-wrap img {
    width: min(240px, 85vw);
  }

  .channels-title {
    font-size: 13px;
  }

  .channels-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4px 6px;
  }

  .channels-grid a {
    display: block;
    padding: 10px 6px;
    font-size: 13px;
    border: 1px solid #334;
    min-height: 40px;
    box-sizing: border-box;
  }

  .channel-list {
    grid-template-columns: 1fr;
  }

  .channel-card {
    padding: 10px;
  }

  .channel-card a {
    font-size: 14px;
    padding: 4px 0;
    min-height: 36px;
  }

  .info-table {
    font-size: 12px;
  }

  .info-table .label {
    display: block;
    padding-bottom: 0;
  }

  .info-table .value {
    display: block;
    padding-bottom: 6px;
    word-break: break-all;
  }

  .info-table tr {
    display: block;
    margin-bottom: 4px;
    border-bottom: 1px solid #223;
    padding-bottom: 4px;
  }

  .info-table td {
    display: block;
    padding: 1px 0;
  }

  .contact-table .label {
    width: auto;
    display: block;
  }

  .contact-table tr {
    display: block;
    margin-bottom: 8px;
  }

  .contact-table td {
    display: block;
    border-bottom: none;
    padding: 2px 0;
    word-break: break-word;
  }

  .links-list li {
    padding: 10px;
  }

  .links-list a {
    font-size: 14px;
    word-break: break-all;
  }

  .site-footer {
    padding: 12px 8px 14px;
  }

  .footer-line {
    font-size: 11px;
    line-height: 1.4;
  }

  .footer-copy {
    font-size: 10px;
  }

  .badge-mirc {
    width: min(148px, 70vw);
    height: auto;
  }

  .quick-item {
    margin-bottom: 14px;
  }

  .quick-item a {
    display: inline-block;
    padding: 6px 4px;
    min-height: 36px;
    font-size: 12px;
  }

  .gb-write {
    padding: 10px;
    min-height: 40px;
  }

  .mobil-btn {
    display: block;
    padding: 12px;
    text-align: center;
    min-height: 44px;
  }
}

@media (max-width: 380px) {
  .header-icon {
    width: 44px;
    height: 40px;
  }

  .logo {
    font-size: 26px;
  }

  .tagline {
    font-size: 10px;
  }

  .menu-list {
    grid-template-columns: 1fr;
  }

  .channels-grid {
    grid-template-columns: 1fr;
  }
}
