/* ============================================
   VAGIPAGES - Retro Geocities CSS
   Flow-based layout with decorative chaos
   ============================================ */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Times New Roman', Times, serif;
  background: #000000;
  color: #ffffff;
  min-height: 100vh;
}

/* ============================================
   VAGIPAGES PLATFORM NAV (on individual pages)
   ============================================ */
.vagipages-nav {
  position: fixed;
  top: 36px;
  left: 0;
  right: 0;
  z-index: 100;
  height: 44px;
  background: linear-gradient(90deg, #1a0a2e 0%, #0d0d1a 50%, #1a0a2e 100%);
  border-bottom: 2px solid #4444aa;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.vagipages-nav-brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vagipages-nav-logo {
  font-family: 'Comic Sans MS', cursive;
  font-size: 20px;
  animation: rainbow-cycle 3s linear infinite;
  background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #9400d3, #ff0000);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.vagipages-nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.vagipages-nav-btn {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  font-weight: bold;
  color: #ff00ff;
  background: transparent;
  padding: 6px 14px;
  border: 2px solid #ff00ff;
  cursor: pointer;
  transition: all 0.2s;
}

.vagipages-nav-btn:hover {
  background: #ff00ff;
  color: #000000;
}

.vagipages-nav-btn.translated {
  background: #ff00ff;
  color: #000000;
}

.vagipages-nav-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.vagipages-nav-btn#music-btn {
  padding: 6px 10px;
  font-size: 14px;
}

.vagipages-nav-btn#music-btn.playing {
  background: #ff00ff;
  animation: music-pulse 0.5s ease-in-out infinite alternate;
}

@keyframes music-pulse {
  from { box-shadow: 0 0 5px #ff00ff; }
  to { box-shadow: 0 0 15px #ff00ff, 0 0 25px #ff00ff; }
}

.vagipages-nav-cta {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  font-weight: bold;
  color: #00ffff;
  text-decoration: none;
  padding: 6px 14px;
  border: 2px solid #00ffff;
  transition: all 0.2s;
}

.vagipages-nav-cta:hover {
  background: #00ffff;
  color: #000000;
}

/* Mobile nav adjustments */
@media (max-width: 480px) {
  .vagipages-nav {
    padding: 0 8px;
  }

  .vagipages-nav-logo {
    font-size: 14px;
  }

  .vagipages-nav-actions {
    gap: 6px;
  }

  .vagipages-nav-btn,
  .vagipages-nav-cta {
    font-size: 10px;
    padding: 5px 8px;
  }
}

/* ============================================
   PAGE CANVAS
   ============================================ */
.vagipage-canvas {
  position: relative;
  min-height: 100vh;
  padding-top: 82px; /* 36px vagibond header + 46px vagipages nav */
}

.vagipage-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.vagipage-background.tiled {
  background-size: auto;
  background-repeat: repeat;
}

/* ============================================
   MAIN CONTENT - Flows vertically
   ============================================ */
.vagipage-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

/* ============================================
   DECORATIONS - Absolute positioned chaos
   ============================================ */
.vagipage-decoration {
  position: fixed;
  z-index: 10;
  pointer-events: none;
}

.vagipage-decoration.top-left {
  top: 95px;
  left: 10px;
}

.vagipage-decoration.top-right {
  top: 95px;
  right: 10px;
}

.vagipage-decoration.bottom-left {
  bottom: 20px;
  left: 10px;
}

.vagipage-decoration.bottom-right {
  bottom: 20px;
  right: 10px;
}

.vagipage-decoration img {
  max-width: 100%;
  image-rendering: pixelated;
}

/* ============================================
   HEADER SECTION
   ============================================ */
.vagipage-header {
  text-align: center;
  padding: 30px 0;
}

.vagipage-title {
  margin: 0 0 10px 0;
  line-height: 1.2;
}

.vagipage-subtitle {
  margin: 0;
  line-height: 1.3;
}

/* ============================================
   MARQUEE
   ============================================ */
.vagipage-marquee {
  overflow: hidden;
  white-space: nowrap;
  background: #000000;
  padding: 10px 0;
  border-top: 2px solid;
  border-bottom: 2px solid;
  margin: 20px 0;
}

.vagipage-marquee-content {
  display: inline-block;
  animation: marquee-scroll 25s linear infinite;
  padding-left: 100%;
}

.vagipage-marquee.speed-slow .vagipage-marquee-content {
  animation-duration: 35s;
}

.vagipage-marquee.speed-fast .vagipage-marquee-content {
  animation-duration: 15s;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ============================================
   SECTION BASE
   ============================================ */
.vagipage-section {
  margin: 30px 0;
  padding: 20px;
  background: rgba(0, 0, 0, 0.7);
  border: 3px ridge #4444aa;
}

/* ============================================
   BIO SECTION
   ============================================ */
.vagipage-bio {
  display: flex;
  gap: 25px;
  align-items: flex-start;
}

.vagipage-bio-image {
  flex-shrink: 0;
  width: 180px;
}

.vagipage-bio-image img {
  width: 100%;
  display: block;
}

.vagipage-bio-image.sparkle {
  padding: 5px;
  background: linear-gradient(90deg, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000);
  background-size: 300% 100%;
  animation: sparkle-border 2s linear infinite;
}

@keyframes sparkle-border {
  0% { background-position: 0% 0; }
  100% { background-position: 300% 0; }
}

.vagipage-bio-text {
  flex: 1;
  font-size: 16px;
  line-height: 1.6;
}

/* ============================================
   TWO-COLUMN SECTION
   ============================================ */
.vagipage-two-column {
  display: flex;
  gap: 20px;
}

.vagipage-column {
  flex: 1;
  padding: 15px;
  background: #000000;
}

.vagipage-column-title {
  margin: 0 0 15px 0;
  font-size: 22px;
}

.vagipage-column-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.vagipage-column-list li {
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.vagipage-column-list li:last-child {
  border-bottom: none;
}

.vagipage-column-list li::before {
  content: "★ ";
}

/* ============================================
   REVIEWS SECTION
   ============================================ */
.vagipage-reviews-title {
  text-align: center;
  font-family: Impact, sans-serif;
  font-size: 24px;
  color: #ffffff;
  margin-bottom: 20px;
}

.vagipage-reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.vagipage-review {
  background: rgba(0, 0, 0, 0.6);
  padding: 15px;
  border-left: 3px solid #ffc0cb;
}

.vagipage-review-quote {
  font-style: italic;
  color: #ffc0cb;
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 12px;
}

.vagipage-review-quote::before {
  content: '"';
}

.vagipage-review-quote::after {
  content: '"';
}

.vagipage-review-author {
  font-size: 13px;
  color: #888888;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.vagipage-contact {
  text-align: center;
}

.vagipage-contact-title {
  margin: 0 0 20px 0;
  font-size: 32px;
}

.vagipage-contact-lines {
  font-size: 15px;
  line-height: 2;
}

/* ============================================
   GRUNTLIST SECTION
   ============================================ */
.vagipage-gruntlist {
  margin: 30px 0;
}

.vagipage-gruntlist-header {
  font-family: 'Comic Sans MS', cursive;
  font-size: 20px;
  color: #ffff00;
  text-align: center;
  margin-bottom: 15px;
}

.vagipage-gruntlist-header a {
  color: #00ffff;
  text-decoration: none;
}

.vagipage-gruntlist-header a:hover {
  text-decoration: underline;
}

/* ============================================
   GUESTBOOK
   ============================================ */
.vagipage-guestbook {
  background: #000033;
  border: 3px ridge #4444aa;
  padding: 20px;
  margin: 30px 0;
}

.vagipage-guestbook-header {
  font-family: 'Comic Sans MS', cursive;
  color: #ffff00;
  font-size: 22px;
  text-align: center;
  margin-bottom: 20px;
  text-decoration: underline;
}

.vagipage-guestbook-entry {
  background: #000066;
  border: 1px solid #6666ff;
  padding: 12px;
  margin-bottom: 12px;
}

.vagipage-guestbook-entry:last-child {
  margin-bottom: 0;
}

.vagipage-guestbook-entry-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.vagipage-guestbook-name {
  color: #00ffff;
  font-weight: bold;
}

.vagipage-guestbook-date {
  color: #888888;
  font-size: 12px;
}

.vagipage-guestbook-message {
  color: #ffffff;
  font-size: 14px;
  line-height: 1.5;
}

/* ============================================
   HIT COUNTER
   ============================================ */
.vagipage-hit-counter-wrapper {
  text-align: center;
  padding: 30px 0;
}

.vagipage-hit-counter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Courier New', monospace;
  background: #000000;
  border: 2px inset #808080;
  padding: 8px 15px;
}

.vagipage-hit-counter-label {
  color: #00ff00;
  font-size: 13px;
}

.vagipage-hit-counter-digits {
  display: flex;
  gap: 2px;
}

.vagipage-hit-counter-digit {
  background: #000033;
  color: #00ff00;
  padding: 4px 8px;
  border: 1px inset #333;
  font-size: 20px;
  font-weight: bold;
  min-width: 24px;
  text-align: center;
}

/* ============================================
   FONTS
   ============================================ */
.font-comic-sans { font-family: 'Comic Sans MS', 'Comic Sans', cursive; }
.font-papyrus { font-family: 'Papyrus', 'Herculanum', fantasy; }
.font-times { font-family: 'Times New Roman', Times, serif; }
.font-arial { font-family: Arial, Helvetica, sans-serif; }
.font-courier { font-family: 'Courier New', Courier, monospace; }
.font-impact { font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif; }

/* ============================================
   TEXT EFFECTS
   ============================================ */
.effect-rainbow {
  animation: rainbow-cycle 3s linear infinite;
  background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #9400d3, #ff0000);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@keyframes rainbow-cycle {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.effect-glow {
  animation: glow-pulse 1.5s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
  from { text-shadow: 0 0 5px currentColor, 0 0 10px currentColor; }
  to { text-shadow: 0 0 10px currentColor, 0 0 20px currentColor, 0 0 30px currentColor; }
}

.effect-blink {
  animation: blink-text 1s steps(1) infinite;
}

@keyframes blink-text {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* ============================================
   CURSOR TRAIL
   ============================================ */
.cursor-trail-particle {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  animation: cursor-trail-fade 1s ease-out forwards;
}

@keyframes cursor-trail-fade {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.5) translateY(-20px); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 700px) {
  .vagipage-content {
    padding: 15px;
  }

  .vagipage-bio {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .vagipage-bio-image {
    width: 150px;
  }

  .vagipage-two-column {
    flex-direction: column;
  }

  .vagipage-decoration {
    display: none;
  }

  .vagipage-title {
    font-size: 42px !important;
  }
}

/* ============================================
   HOMEPAGE STYLES
   ============================================ */
.vagipages-home {
  padding-top: 36px;
  min-height: 100vh;
  background: #0a0a1a;
}

.vagipages-hero {
  text-align: center;
  padding: 60px 20px 40px;
  background: linear-gradient(180deg, rgba(10,10,26,0) 0%, rgba(10,10,26,1) 100%),
              url('https://cdn.vagibond.com/sites/pages/shared/stars-bg.gif');
}

.vagipages-logo {
  font-family: 'Comic Sans MS', cursive;
  font-size: 64px;
  margin-bottom: 10px;
  animation: rainbow-cycle 3s linear infinite;
  background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #9400d3, #ff0000);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.vagipages-tagline {
  font-family: 'Times New Roman', serif;
  font-size: 22px;
  color: #00ffff;
  font-style: italic;
}

.vagipages-subtitle {
  font-family: 'Courier New', monospace;
  font-size: 14px;
  color: #888888;
}

.vagipages-search {
  max-width: 500px;
  margin: 30px auto;
  padding: 0 20px;
}

.vagipages-search-form {
  display: flex;
}

.vagipages-search-input {
  flex: 1;
  padding: 12px 16px;
  font-size: 16px;
  font-family: 'Courier New', monospace;
  background: #000033;
  border: 3px ridge #6666ff;
  border-right: none;
  color: #00ff00;
  outline: none;
}

.vagipages-search-input::placeholder {
  color: #006600;
}

.vagipages-search-btn {
  padding: 12px 20px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: bold;
  background: linear-gradient(180deg, #6666ff 0%, #3333aa 100%);
  border: 3px ridge #6666ff;
  color: #ffffff;
  cursor: pointer;
}

.vagipages-featured {
  padding: 30px 20px;
  text-align: center;
  border-top: 3px ridge #4444aa;
  border-bottom: 3px ridge #4444aa;
  background: rgba(0, 0, 51, 0.5);
}

.vagipages-featured-header {
  font-family: Impact, sans-serif;
  font-size: 28px;
  color: #ffff00;
  margin-bottom: 20px;
  animation: glow-pulse 1.5s ease-in-out infinite alternate;
}

.vagipages-featured-card {
  display: block;
  max-width: 600px;
  margin: 0 auto;
  background: #000033;
  border: 3px outset #4444aa;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}

.vagipages-featured-card:hover {
  transform: scale(1.02);
  box-shadow: 0 0 30px #ff00ff;
}

.vagipages-featured-preview {
  width: 100%;
  height: 200px;
  border-bottom: 2px inset #333;
}

.vagipages-featured-info {
  padding: 15px;
}

.vagipages-featured-name {
  font-family: 'Comic Sans MS', cursive;
  font-size: 24px;
  color: #00ffff;
}

.vagipages-featured-tagline {
  font-size: 14px;
  color: #ff00ff;
  font-style: italic;
}

.vagipages-browse {
  padding: 40px 20px;
}

.vagipages-browse-header {
  font-family: Impact, sans-serif;
  font-size: 24px;
  color: #00ffff;
  text-align: center;
  margin-bottom: 30px;
}

.vagipages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.vagipages-card {
  background: #000033;
  border: 3px outset #4444aa;
  padding: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}

.vagipages-card:hover {
  transform: scale(1.02);
  box-shadow: 0 0 20px #ff00ff;
}

.vagipages-card-preview {
  width: 100%;
  height: 120px;
  border: 2px inset #333;
  margin-bottom: 10px;
}

.vagipages-card-name {
  font-family: 'Comic Sans MS', cursive;
  font-size: 16px;
  color: #00ffff;
}

.vagipages-card-owner {
  font-size: 11px;
  color: #888888;
}

.vagipages-card-tagline {
  font-size: 12px;
  color: #ff00ff;
  font-style: italic;
  margin-top: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vagipages-cta {
  padding: 40px 20px;
  text-align: center;
  background: linear-gradient(180deg, #1a0a2e 0%, #0a0a1a 100%);
  border-top: 3px ridge #4444aa;
}

.vagipages-cta-header {
  font-family: 'Comic Sans MS', cursive;
  font-size: 32px;
  animation: rainbow-cycle 3s linear infinite;
  background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #9400d3, #ff0000);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 15px;
}

.vagipages-cta-text {
  font-size: 16px;
  color: #cccccc;
  margin-bottom: 20px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.vagipages-cta-btn {
  display: inline-block;
  padding: 15px 40px;
  font-family: Impact, sans-serif;
  font-size: 20px;
  background: linear-gradient(180deg, #ff00ff 0%, #aa00aa 100%);
  border: 4px outset #ff00ff;
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
}

.vagipages-construction {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.vagipages-construction img {
  width: 80px;
  image-rendering: pixelated;
}

.vagipages-construction-text {
  font-family: 'Comic Sans MS', cursive;
  font-size: 14px;
  color: #ffff00;
}

.vagipages-footer {
  text-align: center;
  padding: 30px 20px;
  border-top: 3px ridge #4444aa;
  background: #000022;
}

.vagipages-footer-links {
  margin-bottom: 20px;
}

.vagipages-footer-links a {
  color: #00ffff;
  text-decoration: underline;
  margin: 0 15px;
  font-size: 14px;
}

.vagipages-webring {
  margin-bottom: 20px;
  padding: 15px;
  background: #000044;
  border: 2px inset #333;
  display: inline-block;
}

.vagipages-webring-text {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: #888888;
  margin-bottom: 10px;
}

.vagipages-webring-links a {
  color: #00ff00;
  font-size: 12px;
  margin: 0 10px;
}

.vagipages-counter {
  margin-top: 20px;
}

.vagipages-counter-label {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  color: #666666;
}

@media (max-width: 600px) {
  .vagipages-logo {
    font-size: 42px;
  }

  .vagipages-search-form {
    flex-direction: column;
  }

  .vagipages-search-input {
    border-right: 3px ridge #6666ff;
    border-bottom: none;
  }
}
