/* Kitsch Retro 90s/2000s Web Design System */

:root {
  --hot-pink: #ff007f;
  --neon-pink: #ff66cc;
  --gold: #ffd700;
  --neon-blue: #00ffff;
  --neon-green: #39ff14;
  --purple: #8b008b;
  --win-gray: #dfdfdf;
  --win-blue: #000080;
  --win-border-light: #ffffff;
  --win-border-dark: #808080;
}

/* Custom Hearts Cursor */
html, body {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' style='font-size:22px'><text y='24'>💖</text></svg>"), auto;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Outfit', sans-serif;
  background-color: #ff66cc;
  /* Retro diagonal stripe background + radial neon glow */
  background: 
    repeating-linear-gradient(
      45deg,
      #ff66cc,
      #ff66cc 20px,
      #ff3399 20px,
      #ff3399 40px
    );
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  padding: 20px;
  box-sizing: border-box;
}

/* Heart Floating Canvas overlay */
#heart-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

/* Floating Heart Element styling */
.floating-heart {
  position: absolute;
  font-size: 24px;
  animation: floatUp 6s linear forwards;
  opacity: 0.8;
}

@keyframes floatUp {
  0% {
    transform: translateY(100vh) translateX(0) scale(0.5) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-10vh) translateX(calc(var(--sway) * 50px)) scale(1.5) rotate(var(--rot));
    opacity: 0;
  }
}

/* Main Container */
.retro-container {
  width: 100%;
  max-width: 680px;
  z-index: 10;
  position: relative;
}

/* Windows 95/98 Window style */
.window {
  background-color: var(--win-gray);
  border: 3px outset var(--win-border-light);
  box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.4);
  padding: 3px;
  image-rendering: pixelated;
}

.window-titlebarbar {
  background: linear-gradient(90deg, #ff007f, #8b008b);
  color: white;
  padding: 4px 8px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'VT323', monospace;
  font-size: 20px;
  letter-spacing: 1px;
}

.window-controls {
  display: flex;
  gap: 3px;
}

.win-btn {
  background-color: var(--win-gray);
  border: 2px outset var(--win-border-light);
  font-family: monospace;
  font-size: 11px;
  font-weight: bold;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.win-btn:active {
  border: 2px inset var(--win-border-light);
}

.x-btn {
  background-color: #ff5555;
  color: white;
}

.window-body {
  padding: 20px;
  border: 2px inset var(--win-border-light);
  background-color: #fffdf5; /* Off-white retro feel */
  background-image: 
    radial-gradient(#ffddf0 20%, transparent 20%),
    radial-gradient(#ffddf0 20%, transparent 20%);
  background-size: 16px 16px;
  background-position: 0 0, 8px 8px;
}

/* WordArt Titles */
.wordart-title {
  font-family: 'Pacifico', cursive;
  font-size: 38px;
  text-align: center;
  margin: 10px 0 25px 0;
  color: #ff00ff;
  text-shadow: 
    3px 3px 0px var(--gold),
    -1px -1px 0px var(--neon-blue),
    1px -1px 0px var(--neon-blue),
    -1px 1px 0px var(--neon-blue),
    1px 1px 0px var(--neon-blue);
  line-height: 1.3;
}

/* Blinking animations */
.blink {
  animation: blinkInterval 1s step-end infinite;
}

.blink-glow {
  animation: blinkGlowInterval 1.5s ease-in-out infinite alternate;
}

@keyframes blinkInterval {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes blinkGlowInterval {
  0% {
    text-shadow: 
      3px 3px 0px var(--gold),
      0 0 10px var(--neon-pink);
  }
  100% {
    text-shadow: 
      3px 3px 0px var(--gold),
      0 0 30px var(--neon-blue),
      0 0 50px var(--neon-pink);
  }
}

/* Wedding details layout */
.wedding-details {
  text-align: center;
  background-color: rgba(255, 255, 255, 0.9);
  border: 3px double var(--hot-pink);
  padding: 15px;
  margin-bottom: 25px;
  box-shadow: inset 0 0 10px rgba(255, 0, 127, 0.2);
}

.sparkle-text {
  font-family: 'VT323', monospace;
  font-size: 24px;
  color: #ff3300;
  font-weight: bold;
  margin: 5px 0;
  animation: colorCycle 2s infinite;
}

@keyframes colorCycle {
  0% { color: #ff3300; }
  25% { color: #ff00cc; }
  50% { color: #00ccff; }
  75% { color: #39ff14; }
  100% { color: #ff3300; }
}

.invitation-text {
  font-size: 16px;
  line-height: 1.6;
  color: #4a0e2e;
  font-weight: 500;
  margin-bottom: 15px;
}

.wedding-info-box {
  background-color: #fff9e6;
  border: 2px dashed #ffb86c;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  max-width: 440px;
  margin: 0 auto;
  font-size: 14px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #333;
}

/* Form Styles */
.rsvp-section {
  margin-top: 20px;
}

.section-title {
  text-align: center;
  font-family: 'VT323', monospace;
  font-size: 26px;
  color: var(--purple);
  margin-bottom: 20px;
  text-transform: uppercase;
  background-color: #ffd2e6;
  padding: 5px;
  border-left: 5px solid var(--hot-pink);
  border-right: 5px solid var(--hot-pink);
}

.neon-divider {
  border: 0;
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    var(--hot-pink),
    var(--hot-pink) 10px,
    var(--gold) 10px,
    var(--gold) 20px
  );
  margin: 25px 0;
}

.retro-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-weight: 800;
  font-size: 15px;
  color: #5b0e3b;
  display: flex;
  align-items: center;
  gap: 5px;
}

.retro-input {
  background-color: #ffffff;
  border: 3px inset var(--win-border-light);
  padding: 10px;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  box-shadow: inset 2px 2px 2px rgba(0,0,0,0.2);
}

.retro-input:focus {
  border-color: var(--hot-pink);
  box-shadow: 
    inset 2px 2px 2px rgba(0,0,0,0.2),
    0 0 8px rgba(255, 0, 127, 0.4);
}

.retro-textarea {
  min-height: 80px;
  resize: vertical;
}

/* Radio Group Kitschy Styles */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 5px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

.radio-label input {
  display: none;
}

.custom-radio {
  width: 18px;
  height: 18px;
  border: 3px inset var(--win-border-light);
  border-radius: 50%;
  background-color: white;
  display: inline-block;
  position: relative;
  box-shadow: inset 1px 1px 2px rgba(0,0,0,0.3);
}

.radio-label input:checked + .custom-radio::after {
  content: "❤️";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 12px;
}

/* Massive Shiny Submit Button */
.btn-container {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

.shiny-submit-btn {
  background: linear-gradient(135deg, #ffd700, #ff00ff, #00ffff);
  background-size: 200% 200%;
  border: 4px outset var(--win-border-light);
  color: white;
  font-family: 'VT323', monospace;
  font-size: 28px;
  font-weight: bold;
  padding: 12px 35px;
  cursor: pointer;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.3);
  animation: gradientShift 3s ease infinite, pulseBtn 1.5s ease-in-out infinite alternate;
  outline: none;
}

.shiny-submit-btn:hover {
  transform: scale(1.05);
}

.shiny-submit-btn:active {
  border-style: inset;
  transform: scale(0.98);
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes pulseBtn {
  0% {
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.3), 0 0 10px rgba(255, 0, 255, 0.5);
  }
  100% {
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.3), 0 0 25px rgba(0, 255, 255, 0.8);
  }
}

/* Music Player Widget Styling */
.music-player-container {
  position: fixed;
  top: 15px;
  right: 15px;
  background-color: var(--win-gray);
  border: 3px outset var(--win-border-light);
  padding: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 100;
  box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.3);
  font-family: 'VT323', monospace;
  font-size: 14px;
}

.cd-spinner {
  font-size: 26px;
  display: inline-block;
  animation: spin 3s linear infinite paused;
}

.cd-spinner.playing {
  animation-play-state: running;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.music-controls {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.music-title {
  max-width: 110px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #333;
}

.retro-btn {
  background-color: var(--win-gray);
  border: 2px outset var(--win-border-light);
  color: #000;
  font-family: inherit;
  font-weight: bold;
  cursor: pointer;
  padding: 4px 10px;
}

.retro-btn:active {
  border-style: inset;
}

.mini-btn {
  padding: 1px 4px;
  font-size: 12px;
}

.small-btn {
  font-size: 14px;
}

/* Admin Link block */
.admin-link-container {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

/* Modal Styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  width: 100%;
  max-width: 480px;
}

.wide-modal {
  max-width: 780px;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.mt-15 {
  margin-top: 15px;
}

.success-emoji-container {
  font-size: 40px;
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 10px;
}

.pulse-emoji {
  display: inline-block;
  animation: pulseEmojiAnim 1.2s ease-in-out infinite alternate;
}

.pulse-emoji:nth-child(2) {
  animation-delay: 0.4s;
}

.pulse-emoji:nth-child(3) {
  animation-delay: 0.8s;
}

@keyframes pulseEmojiAnim {
  0% { transform: scale(1); }
  100% { transform: scale(1.3); }
}

.modal-success-title {
  color: var(--hot-pink);
  font-family: 'Pacifico', cursive;
  font-size: 26px;
  margin: 10px 0;
}

.modal-text {
  font-size: 16px;
  color: #333;
  line-height: 1.5;
}

.modal-subtext {
  font-size: 14px;
  color: #777;
  font-style: italic;
  margin-bottom: 20px;
}

.love-letter-svg {
  margin: 15px 0;
}

.main-close-btn {
  font-size: 18px;
  padding: 8px 25px;
  border-width: 3px;
  background-color: var(--gold);
}

/* Retro Admin Stats badges */
.admin-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
  font-family: 'VT323', monospace;
  font-size: 18px;
}

.stat-badge {
  background-color: #eee;
  border: 2px inset var(--win-border-light);
  padding: 4px 10px;
  border-radius: 4px;
  color: #333;
}

.badge-green { background-color: #d4edda; color: #155724; }
.badge-red { background-color: #f8d7da; color: #721c24; }
.badge-blue { background-color: #d1ecf1; color: #0c5460; }

/* Retro Guest List Table Styling */
.table-container {
  overflow-x: auto;
  max-height: 380px;
  border: 3px inset var(--win-border-light);
}

.retro-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background-color: #fff;
  text-align: left;
}

.retro-table th, .retro-table td {
  padding: 8px 10px;
  border: 1px solid #ccc;
}

.retro-table th {
  background-color: #e0e0e0;
  font-family: 'VT323', monospace;
  font-size: 16px;
  color: #000;
  position: sticky;
  top: 0;
}

.retro-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.retro-table tr:hover {
  background-color: #fff2f9;
}

/* Responsive queries */
@media (max-width: 600px) {
  .wordart-title {
    font-size: 28px;
  }
  .window-body {
    padding: 12px;
  }
  .shiny-submit-btn {
    font-size: 22px;
    padding: 10px 20px;
  }
  .music-player-container {
    top: auto;
    bottom: 15px;
    right: 15px;
  }
}
