/* ============================================================
   dorybandywedding.hu — BARACK VILÁGA
   Vintage-web pastiche: boxy grid, clashing colours, fake chrome.
   Deliberately garish. That is the point.
   ============================================================ */

:root {
  --hot-pink: #ff00c8;
  --neon-green: #39ff14;
  --electric-blue: #00c8ff;
  --acid-yellow: #faff00;
  --purple: #9200ff;
  --orange: #ff7a00;
  --black: #0a0a0a;
  --white: #ffffff;
  --grey-face: #c0c0c0;
  --grey-dark: #808080;
  --grey-shadow: #404040;
  --win-blue-1: #0a1fa8;
  --win-blue-2: #1084d0;
  --body-font: "Comic Sans MS", "Comic Sans", "Chalkboard SE", Verdana, sans-serif;
  --serif-font: "Times New Roman", Times, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body-font);
  color: var(--black);
  background-color: var(--purple);
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.06) 0 10px, transparent 10px 20px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,0.08) 0 10px, transparent 10px 20px);
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"><text y="18" font-size="18">🐾</text></svg>') 12 12, auto;
}

a { color: var(--hot-pink); }
a:visited { color: var(--purple); }

img { max-width: 100%; display: block; }

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

/* ---------- blink / marquee ---------- */
@keyframes blinker {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
.blink { animation: blinker 1s steps(1) infinite; }

.marquee-wrap {
  overflow: hidden;
  white-space: nowrap;
  background: var(--black);
  color: var(--acid-yellow);
  border-top: 3px solid var(--hot-pink);
  border-bottom: 3px solid var(--hot-pink);
  padding: 6px 0;
}
.marquee-track {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 28s linear infinite;
  font-weight: bold;
  letter-spacing: 0.03em;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ---------- chaos header ---------- */
#chaos-header {
  background: linear-gradient(180deg, var(--hot-pink), var(--purple));
  padding-bottom: 0.5rem;
  border-bottom: 6px solid var(--acid-yellow);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  padding: 8px 0;
}
.badge {
  background: var(--black);
  color: var(--neon-green);
  font-family: var(--serif-font);
  font-size: 11px;
  font-weight: bold;
  padding: 4px 8px;
  border: 2px outset var(--grey-face);
  white-space: nowrap;
}

.hit-counter {
  text-align: center;
  margin: 0.5rem auto;
  display: inline-block;
  background: var(--black);
  border: 2px inset var(--grey-face);
  padding: 6px 10px;
}
.hit-counter-wrap { text-align: center; }
.hit-counter .label {
  color: var(--white);
  font-size: 11px;
  display: block;
  margin-bottom: 2px;
  font-family: var(--serif-font);
}
.hit-counter .digits {
  font-family: "Courier New", monospace;
  font-weight: bold;
  font-size: 22px;
  letter-spacing: 3px;
  color: var(--neon-green);
  background: #001a00;
  padding: 2px 6px;
}

.site-title {
  text-align: center;
  color: var(--white);
  text-shadow: 3px 3px 0 var(--black), -1px -1px 0 var(--electric-blue);
  font-size: clamp(28px, 6vw, 52px);
  margin: 0.4rem 0 0.2rem;
  letter-spacing: 0.02em;
}
.site-subtitle {
  text-align: center;
  color: var(--acid-yellow);
  font-family: var(--serif-font);
  font-style: italic;
  margin: 0 0 0.6rem;
  font-size: 15px;
}

/* ---------- nav ---------- */
#main-nav {
  background: var(--black);
  border-bottom: 4px double var(--acid-yellow);
  position: sticky;
  top: 0;
  z-index: 50;
}
#main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
  margin: 0;
  padding: 6px;
}
#main-nav a {
  display: block;
  background: var(--grey-face);
  color: var(--black);
  text-decoration: none;
  font-weight: bold;
  font-size: 12px;
  padding: 6px 10px;
  border: 2px outset var(--white);
}
#main-nav a:hover { background: var(--acid-yellow); }
#main-nav a.serious {
  background: var(--electric-blue);
  color: var(--white);
  border-color: var(--white);
}

/* ---------- win98 window chrome ---------- */
.win-window {
  background: var(--grey-face);
  border: 3px outset var(--white);
  margin: 1.5rem 0;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.4);
}
.win-titlebar {
  background: linear-gradient(90deg, var(--win-blue-1), var(--win-blue-2));
  color: var(--white);
  font-weight: bold;
  font-size: 13px;
  padding: 4px 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.win-titlebar .win-btns { display: flex; gap: 3px; }
.win-titlebar .win-btns span {
  background: var(--grey-face);
  color: var(--black);
  border: 1px outset var(--white);
  width: 16px;
  height: 14px;
  font-size: 10px;
  line-height: 14px;
  text-align: center;
  font-family: var(--serif-font);
}
.win-body {
  background: var(--white);
  padding: 1rem;
  border-top: 2px solid var(--grey-dark);
}

section { padding: 1.25rem 0; }

.section-title {
  font-size: clamp(22px, 4vw, 34px);
  text-align: center;
  color: var(--hot-pink);
  text-shadow: 2px 2px 0 var(--black);
  margin: 0 0 1rem;
}

/* ---------- two-column layout (myspace-style) ---------- */
.page-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 1.5rem;
  align-items: start;
  padding-top: 1.5rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  max-width: 1280px;
}
#sidebar .win-window:first-child { margin-top: 0; }
#main-col > section:first-child { padding-top: 0; }

@media (max-width: 820px) {
  .page-layout { grid-template-columns: 1fr; }
}

/* ---------- profile card (myspace-ish) ---------- */
.profile-photo {
  width: 100%;
  border: 4px ridge var(--hot-pink);
}
.profile-name {
  font-size: 18px;
  text-align: center;
  color: var(--hot-pink);
  text-shadow: 1px 1px 0 var(--black);
  margin: 0.6rem 0;
}
.profile-stats {
  font-size: 12px;
  border-collapse: collapse;
  width: 100%;
}
.profile-stats td {
  border: 1px solid var(--grey-dark);
  padding: 3px 6px;
}
.profile-stats td.k { background: var(--acid-yellow); font-weight: bold; width: 40%; }
.about-me {
  margin-top: 0.75rem;
  background: #fff0fa;
  border: 2px dashed var(--hot-pink);
  padding: 0.75rem;
  font-size: 13px;
}
.insta-widget {
  margin-top: 1.5rem;
  border-radius: 18px;
  padding: 1rem;
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af, #515bd4);
  box-shadow: 4px 4px 0 rgba(0,0,0,0.35);
}
.insta-widget-title {
  color: var(--white);
  font-weight: bold;
  font-size: 14px;
  text-align: center;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.35);
  margin-bottom: 0.6rem;
}
.insta-widget ul { list-style: none; margin: 0; padding: 0; }
.insta-widget li { margin-bottom: 6px; }
.insta-widget li:last-child { margin-bottom: 0; }
.insta-widget li a {
  display: block;
  background: rgba(255,255,255,0.18);
  color: var(--white);
  text-decoration: none;
  font-size: 12px;
  font-weight: bold;
  padding: 7px 10px;
  border-radius: 10px;
  transition: background 0.15s ease;
}
.insta-widget li a:hover { background: rgba(255,255,255,0.38); }
.insta-widget li.disabled {
  background: rgba(0,0,0,0.28);
  color: rgba(255,255,255,0.65);
  font-size: 12px;
  font-weight: bold;
  padding: 7px 10px;
  border-radius: 10px;
  cursor: not-allowed;
}

/* ---------- blog featured row (highlighted post + bulletin, side by side) ---------- */
.blog-featured-row {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 1rem;
  align-items: stretch;
  margin-bottom: 1.25rem;
}
.blog-featured-row .blog-post { margin-bottom: 0; }
@media (max-width: 640px) {
  .blog-featured-row { grid-template-columns: 1fr; }
  .blog-featured-row .bulletin { order: -1; }
}

/* ---------- bulletin ---------- */
.bulletin {
  background: var(--acid-yellow);
  border: 2px solid var(--black);
  padding: 0.6rem 0.85rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}
.blog-post-img {
  width: 100%;
  display: block;
  max-height: 260px;
  object-fit: cover;
  border-bottom: 2px solid var(--black);
}
.bulletin p { font-size: 12px; margin: 0.35rem 0; line-height: 1.35; }
.bulletin h3 {
  font-size: clamp(13px, 2vw, 15px);
  margin: 0 0 0.15rem;
}
.bulletin .date {
  font-size: clamp(14px, 3vw, 18px);
  font-weight: bold;
  color: var(--hot-pink);
  text-shadow: 1px 1px 0 var(--black);
  margin: 0.15rem 0;
}
.bulletin .venues { font-weight: bold; margin: 0.2rem 0 0.4rem; font-size: 12px; }
.btn-serious {
  display: inline-block;
  background: var(--electric-blue);
  color: var(--white);
  font-weight: bold;
  text-decoration: none;
  padding: 7px 14px;
  border: 2px outset var(--white);
  font-size: 12px;
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
.bulletin small { display: block; margin-top: 0.4rem; font-size: 10px; }

/* ---------- blog ---------- */
.blog-post {
  background: var(--white);
  border: 2px solid var(--black);
  margin-bottom: 1.25rem;
}
.blog-post-head {
  background: var(--neon-green);
  padding: 6px 10px;
  border-bottom: 2px solid var(--black);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 12px;
  font-weight: bold;
}
.blog-post-body { padding: 0.9rem 1rem; font-size: 15px; line-height: 1.5; display: flow-root; }
.blog-post-body .tag {
  display: inline-block;
  background: var(--hot-pink);
  color: var(--white);
  font-size: 10px;
  padding: 1px 6px;
  margin-right: 4px;
}
.post-thumb {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border: 2px solid var(--black);
}
.post-thumb-left { float: left; margin: 0 10px 6px 0; }
.post-thumb-right { float: right; margin: 0 0 6px 10px; }

/* ---------- photo wall ---------- */
.filebrowser {
  background: var(--white);
  border: 2px inset var(--grey-face);
}
.filebrowser-bar {
  background: var(--grey-face);
  border-bottom: 1px solid var(--grey-dark);
  font-size: 11px;
  padding: 4px 8px;
  font-family: var(--serif-font);
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  padding: 12px;
}
.photo-tile { text-align: center; }
.photo-tile img {
  border: 2px solid var(--grey-dark);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
  cursor: zoom-in;
}
.photo-tile img:hover { border-color: var(--hot-pink); }
.photo-tile .fname {
  font-family: "Courier New", monospace;
  font-size: 10px;
  background: var(--black);
  color: var(--neon-green);
  padding: 2px;
  overflow-wrap: anywhere;
}

/* ---------- videos ---------- */
.video-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}
@media (max-width: 560px) {
  .video-row { grid-template-columns: 1fr; }
}
.video-box {
  background: var(--white);
  border: 2px solid var(--black);
  position: relative;
  overflow: visible;
}
.video-box-head {
  background: var(--black);
  color: var(--neon-green);
  font-family: "Courier New", monospace;
  font-size: 12px;
  font-weight: bold;
  padding: 6px 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}
.rec-dot { color: #ff2d2d; animation: blinker 1s steps(1) infinite; }
.video-box-head span:nth-child(2) { flex: 1; color: var(--acid-yellow); }
.video-box video {
  width: 100%;
  max-height: 70vh;
  display: block;
  background: #000;
  border-top: 2px solid var(--black);
  border-bottom: 2px solid var(--black);
}
.video-caption { padding: 0.7rem 1rem; font-size: 14px; line-height: 1.4; }
.video-flair {
  display: inline-block;
  background: var(--hot-pink);
  color: var(--white);
  font-family: var(--body-font);
  font-size: 11px;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 3px;
  transform: rotate(-4deg);
  white-space: nowrap;
}

/* ---------- quizzes ---------- */
.quiz-box {
  background: var(--white);
  border: 3px solid var(--purple);
  padding: 1rem;
  margin-bottom: 1rem;
}
.quiz-box h4 { margin: 0; }
.quiz-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: var(--purple);
  font-family: var(--body-font);
  font-weight: bold;
  font-size: 16px;
  text-align: left;
  cursor: pointer;
}
.quiz-chevron { transition: transform 0.15s ease; font-size: 18px; flex-shrink: 0; }
.quiz-toggle[aria-expanded="true"] .quiz-chevron { transform: rotate(90deg); }
.quiz-body { margin-top: 0.85rem; }
.quiz-q { margin-bottom: 0.9rem; }
.quiz-q p.qtext { font-weight: bold; margin: 0 0 0.3rem; }
.quiz-q label {
  display: block;
  background: #f4f0ff;
  border: 1px solid var(--purple);
  padding: 5px 8px;
  margin-bottom: 4px;
  font-size: 13px;
  cursor: pointer;
}
.quiz-q label:hover { background: var(--acid-yellow); }
.quiz-submit {
  background: var(--hot-pink);
  color: var(--white);
  font-weight: bold;
  border: 3px outset var(--white);
  padding: 8px 18px;
  font-size: 14px;
  cursor: pointer;
}
.quiz-result {
  margin-top: 0.75rem;
  background: var(--acid-yellow);
  border: 3px dashed var(--black);
  padding: 0.75rem;
  display: none;
  font-weight: bold;
}
.quiz-result.show { display: block; }

/* ---------- guestbook ---------- */
.guestbook-note {
  background: #fff0fa;
  border: 2px dashed var(--hot-pink);
  padding: 1rem;
  font-size: 14px;
  margin-bottom: 1rem;
}
.guestbook-form {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.gb-label {
  font-size: 11px;
  font-weight: bold;
  color: var(--purple);
  margin-top: 6px;
}
.guestbook-form input[type="text"],
.guestbook-form textarea {
  font-family: var(--body-font);
  font-size: 13px;
  padding: 6px 8px;
  border: 2px inset var(--grey-face);
  background: var(--white);
  resize: vertical;
}
.guestbook-form .quiz-submit { margin-top: 8px; align-self: flex-start; }
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
#gb-status {
  font-size: 12px;
  font-weight: bold;
  margin-top: 6px;
  min-height: 1em;
}
#gb-status.ok { color: #0a7a2f; }
#gb-status.error { color: #a80000; }
.gb-count {
  font-size: 11px;
  font-weight: bold;
  color: var(--purple);
  margin-top: 1rem;
  margin-bottom: 4px;
}
/* Scrollable retro listbox — once there are enough messages to overflow,
   this scrolls instead of the whole sidebar growing without end. */
#guestbook-messages {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 340px;
  overflow-y: auto;
  border: 2px inset var(--grey-face);
  background: #f4f4f4;
  padding: 8px;
}
#guestbook-messages::-webkit-scrollbar { width: 12px; }
#guestbook-messages::-webkit-scrollbar-track { background: var(--grey-face); }
#guestbook-messages::-webkit-scrollbar-thumb { background: var(--purple); border: 2px solid var(--grey-face); }
.gb-msg {
  background: var(--white);
  border: 1px solid var(--grey-dark);
  border-left: 6px solid var(--neon-green);
  padding: 6px 8px;
  font-size: 12px;
}
.gb-msg-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 2px;
}
.gb-msg .who { font-weight: bold; color: var(--purple); }
.gb-msg .when {
  font-family: "Courier New", monospace;
  font-size: 10px;
  color: var(--grey-dark);
  white-space: nowrap;
}
.gb-msg-body { line-height: 1.4; }

/* ---------- footer / webring ---------- */
footer#szponzorok {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 2rem 1rem;
  border-top: 6px solid var(--acid-yellow);
}
.webring-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 1rem 0;
}
.webring-badges .badge { color: var(--acid-yellow); }
footer#szponzorok .to-official {
  display: inline-block;
  margin-top: 1rem;
  background: var(--electric-blue);
  color: var(--white);
  padding: 8px 16px;
  text-decoration: none;
  font-weight: bold;
  border: 2px outset var(--white);
}
footer#szponzorok .fine-print { font-size: 10px; opacity: 0.7; margin-top: 1.5rem; }

/* ---------- oldschool music player ---------- */
.player {
  background: #000;
  border: 2px inset var(--grey-face);
  padding: 8px;
}
.player-screen {
  background: #001a00;
  border: 1px solid #003300;
  padding: 6px 8px;
  margin-bottom: 8px;
}
.player-track {
  color: var(--neon-green);
  font-family: "Courier New", monospace;
  font-size: 11px;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-viz {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
  margin-top: 6px;
}
.player-viz span {
  flex: 1;
  background: var(--neon-green);
  height: 15%;
  animation: eq 0.8s ease-in-out infinite;
  animation-play-state: paused;
}
.player-viz span:nth-child(1) { animation-delay: 0s; }
.player-viz span:nth-child(2) { animation-delay: 0.1s; }
.player-viz span:nth-child(3) { animation-delay: 0.2s; }
.player-viz span:nth-child(4) { animation-delay: 0.3s; }
.player-viz span:nth-child(5) { animation-delay: 0.15s; }
.player-viz span:nth-child(6) { animation-delay: 0.35s; }
.player-viz span:nth-child(7) { animation-delay: 0.05s; }
.player-viz span:nth-child(8) { animation-delay: 0.25s; }
.player-viz.playing span { animation-play-state: running; }
@keyframes eq {
  0%, 100% { height: 15%; }
  50% { height: 95%; }
}
.player-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.player-btn {
  background: var(--grey-face);
  border: 2px outset var(--white);
  font-weight: bold;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
}
.player-btn:active { border-style: inset; }
.player-progress {
  flex: 1;
  height: 10px;
  background: #222;
  border: 1px inset var(--grey-face);
  overflow: hidden;
}
.player-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--neon-green);
}
.player-time {
  color: var(--white);
  font-family: "Courier New", monospace;
  font-size: 10px;
  white-space: nowrap;
}

/* ---------- lightbox ---------- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  padding: 2rem;
}
.lightbox-overlay.show { display: flex; }
.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  border: 5px solid var(--white);
  box-shadow: 0 0 0 4px var(--hot-pink);
}

/* ---------- popups ---------- */
.fake-popup {
  position: fixed;
  z-index: 200;
  width: min(340px, 86vw);
  background: var(--grey-face);
  border: 3px outset var(--white);
  box-shadow: 6px 6px 0 rgba(0,0,0,0.5);
  display: none;
}
.fake-popup.show { display: block; }
.fake-popup .win-titlebar { background: linear-gradient(90deg, #a80000, #d01010); }
.fake-popup .win-body { font-size: 13px; padding: 0.9rem; }
.fake-popup .win-body button {
  margin-top: 0.6rem;
  background: var(--grey-face);
  border: 2px outset var(--white);
  padding: 5px 12px;
  font-weight: bold;
  cursor: pointer;
}
