/* ============================================
   WINDSOR LUTHIERY & WOODWORKING - STYLESHEET
   ============================================
   HOW TO CUSTOMIZE THIS FILE:
   - Colors are defined at the top as CSS variables
   - Change --color-wood-dark to change the main background
   - Change --color-gold to change accent colors
   - Each section has a clear comment header
   ============================================ */

:root {
  /* ============================
     COLORS - Easy to change!
     ============================ */
  --color-wood-dark: #1a0f08;
  --color-wood-medium: #2c1810;
  --color-wood-light: #3d2314;
  --color-wood-grain: #4a2c18;
  --color-gold: #daa520;
  --color-gold-light: #f0c060;
  --color-gold-dark: #b8860b;
  --color-brass: #cd853f;
  --color-cream: #f5e6c8;
  --color-text-light: #f0e0c0;
  --color-text-gold: #daa520;

  /* ============================
     BACKGROUND IMAGES
     Change these to swap backgrounds!
     ============================ */
  --bg-main: url('/images/backgrounds/woodgrain.jpg');
  /* If you don't have an image, comment out the line above.
     The CSS below will use a wood-like gradient pattern instead. */
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ============================================
   BODY - The main dark wood background
   ============================================ */
body {
  background-color: var(--color-wood-dark);
  /* CSS wood grain fallback - diagonal streaks to mimic wood grain */
  background-image:
    repeating-linear-gradient(
      100deg,
      transparent 0px,
      transparent 2px,
      rgba(74, 44, 24, 0.3) 2px,
      rgba(74, 44, 24, 0.3) 3px,
      transparent 3px,
      transparent 8px
    ),
    repeating-linear-gradient(
      98deg,
      transparent 0px,
      transparent 4px,
      rgba(60, 35, 20, 0.2) 4px,
      rgba(60, 35, 20, 0.2) 5px,
      transparent 5px,
      transparent 12px
    ),
    linear-gradient(
      180deg,
      var(--color-wood-dark) 0%,
      var(--color-wood-medium) 30%,
      var(--color-wood-dark) 60%,
      var(--color-wood-light) 80%,
      var(--color-wood-dark) 100%
    );
  color: var(--color-text-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  /* Prevent horizontal scroll from decorations */
  overflow-x: hidden;
}

/* ============================================
   CRT SCANLINE EFFECT
   A very subtle horizontal line overlay to give
   that old monitor feel. Adjust opacity to taste.
   ============================================ */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.07) 2px,
    rgba(0, 0, 0, 0.07) 4px
  );
}

/* ============================================
   DECORATIVE HORIZONTAL RULES
   Gold gradient dividers between sections
   ============================================ */
hr {
  border: none;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--color-gold-dark) 20%,
    var(--color-gold) 50%,
    var(--color-gold-dark) 80%,
    transparent 100%
  );
  margin: 16px 0;
}

hr.thick {
  height: 4px;
  margin: 24px 0;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--color-gold-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(218, 165, 32, 0.3);
}

a {
  color: var(--color-gold);
  text-decoration: underline;
}

a:hover {
  color: var(--color-gold-light);
  text-shadow: 0 0 6px rgba(218, 165, 32, 0.6);
}

p {
  color: var(--color-text-light);
  margin-bottom: 10px;
}

/* ============================================
   MAIN WRAPPER
   Centers everything, max width for readability
   ============================================ */
#page-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 10px;
  position: relative;
}

/* ============================================
   TOP BANNER - Marquee strip at very top
   ============================================ */
#top-banner {
  background: linear-gradient(180deg, #0a0600 0%, var(--color-wood-dark) 100%);
  border-bottom: 3px solid var(--color-gold-dark);
  padding: 4px 0;
  text-align: center;
  overflow: hidden;
  position: relative;
}

.marquee-container {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

/* The scrolling text wrapper - uses CSS animation as marquee fallback */
.marquee-text {
  display: inline-block;
  white-space: nowrap;
  animation: marquee-scroll 30s linear infinite;
  color: var(--color-gold-light);
  font-family: "Courier New", Lucida Console, monospace;
  font-size: 12px;
  letter-spacing: 1px;
}

/* Pause marquee on hover - old-school usability */
.marquee-text:hover {
  animation-play-state: paused;
}

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

/* The "NEW!" blinking badge in the banner */
.banner-new-badge {
  background: red;
  color: #fff;
  font-weight: bold;
  font-size: 11px;
  font-family: "Courier New", monospace;
  padding: 2px 6px;
  border: 2px outset #ff6666;
  animation: blink 1s step-end infinite;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 10px;
}

/* ============================================
   BLINK ANIMATION
   Applied to .blink class and various badges
   ============================================ */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.blink {
  animation: blink 1s step-end infinite;
}

/* Slower blink for less obnoxious elements */
.blink-slow {
  animation: blink 2s step-end infinite;
}

/* ============================================
   HEADER - The main site title area
   ============================================ */
#site-header {
  background: linear-gradient(
    180deg,
    #0d0700 0%,
    var(--color-wood-medium) 20%,
    var(--color-wood-light) 50%,
    var(--color-wood-medium) 80%,
    #0d0700 100%
  );
  border: 4px outset var(--color-gold-dark);
  border-top: none;
  padding: 20px 20px 10px;
  text-align: center;
  position: relative;
}

/* Wood grain lines inside the header */
#site-header::before {
  content: "";
  position: absolute;
  inset: 4px;
  background-image: repeating-linear-gradient(
    95deg,
    transparent 0px,
    transparent 3px,
    rgba(218, 165, 32, 0.05) 3px,
    rgba(218, 165, 32, 0.05) 4px
  );
  pointer-events: none;
}

/* The big site title */
#site-title {
  font-size: 2.4em;
  font-family: Georgia, "Times New Roman", serif;
  /* Gold gradient text effect */
  background: linear-gradient(
    180deg,
    var(--color-gold-light) 0%,
    var(--color-gold) 40%,
    var(--color-gold-dark) 70%,
    var(--color-brass) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  letter-spacing: 2px;
  text-transform: uppercase;
  filter: drop-shadow(2px 3px 4px rgba(0,0,0,0.9));
  margin-bottom: 6px;
}

#site-subtitle {
  font-size: 1em;
  color: var(--color-brass);
  font-style: italic;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-family: "Courier New", monospace;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
  margin-bottom: 16px;
}

/* Ornamental divider below title */
.ornament {
  color: var(--color-gold);
  font-size: 1.2em;
  letter-spacing: 8px;
  margin: 8px 0;
}

/* ============================================
   NAVIGATION BAR
   Old-school beveled button nav
   ============================================ */
#main-nav {
  background: linear-gradient(180deg, var(--color-wood-light) 0%, var(--color-wood-medium) 100%);
  border: 3px outset var(--color-gold-dark);
  padding: 6px 10px;
  text-align: center;
}

#main-nav a {
  display: inline-block;
  background: linear-gradient(180deg, var(--color-wood-grain) 0%, var(--color-wood-dark) 100%);
  color: var(--color-gold-light);
  text-decoration: none;
  font-family: "Courier New", monospace;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  margin: 2px 3px;
  border: 2px outset var(--color-gold-dark);
  cursor: pointer;
}

#main-nav a:hover {
  border-style: inset;
  background: linear-gradient(180deg, var(--color-wood-dark) 0%, var(--color-wood-grain) 100%);
  color: var(--color-gold);
  text-shadow: 0 0 6px rgba(218, 165, 32, 0.5);
}

/* ============================================
   DECORATIONS LAYER
   Absolutely positioned over the whole page.
   pointer-events: none so you can click through.
   In edit mode, pointer-events become auto.
   ============================================ */
#decorations-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100;
  /* Must be inside a positioned ancestor - see #page-container */
}

#page-container {
  position: relative;
}

/* Each decoration element */
.decoration {
  position: absolute;
  user-select: none;
  display: inline-block;
  /* Images slightly glow on hover in edit mode */
  transition: filter 0.2s;
  filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.6));
}

.decoration img {
  display: block;
  /* Prevent native image drag behavior */
  -webkit-user-drag: none;
  user-select: none;
}

/* ============================================
   EDIT MODE STYLES
   When body has class "edit-mode", decorations
   become interactive
   ============================================ */
body.edit-mode #decorations-layer {
  pointer-events: none; /* layer itself stays pass-through */
}

body.edit-mode .decoration {
  pointer-events: auto; /* individual decorations become clickable */
  cursor: grab;
  border: 2px dashed rgba(218, 165, 32, 0.7);
  padding: 2px;
  background: rgba(218, 165, 32, 0.05);
}

body.edit-mode .decoration:hover {
  border-color: var(--color-gold);
  background: rgba(218, 165, 32, 0.1);
  filter: drop-shadow(0 0 8px rgba(218, 165, 32, 0.6));
}

body.edit-mode .decoration.dragging {
  cursor: grabbing;
  opacity: 0.8;
  border-color: var(--color-gold-light);
  z-index: 200 !important;
  filter: drop-shadow(0 0 12px rgba(218, 165, 32, 0.9));
}

/* Edit mode indicator banner at top */
#edit-mode-indicator {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(218, 165, 32, 0.9);
  color: #000;
  text-align: center;
  font-family: "Courier New", monospace;
  font-weight: bold;
  font-size: 12px;
  padding: 4px;
  z-index: 10000;
  letter-spacing: 2px;
}

body.edit-mode #edit-mode-indicator {
  display: block;
}

/* Floating edit mode toggle button */
#edit-mode-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(180deg, var(--color-wood-grain) 0%, var(--color-wood-dark) 100%);
  color: var(--color-gold);
  border: 3px outset var(--color-gold-dark);
  font-family: "Courier New", monospace;
  font-size: 11px;
  font-weight: bold;
  padding: 6px 12px;
  cursor: pointer;
  z-index: 1000;
  letter-spacing: 1px;
  text-transform: uppercase;
}

#edit-mode-btn:hover {
  color: var(--color-gold-light);
  text-shadow: 0 0 6px rgba(218, 165, 32, 0.5);
}

body.edit-mode #edit-mode-btn {
  border-style: inset;
  background: linear-gradient(180deg, var(--color-wood-dark) 0%, var(--color-wood-grain) 100%);
}

/* Save positions button (shown only in edit mode) */
#save-positions-btn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 160px;
  background: linear-gradient(180deg, #1a3a1a 0%, #0a1a0a 100%);
  color: #90ee90;
  border: 3px outset #2d5a2d;
  font-family: "Courier New", monospace;
  font-size: 11px;
  font-weight: bold;
  padding: 6px 12px;
  cursor: pointer;
  z-index: 1000;
  letter-spacing: 1px;
  text-transform: uppercase;
}

body.edit-mode #save-positions-btn {
  display: block;
}

#save-positions-btn:hover {
  color: #aaffaa;
}

/* ============================================
   RETRO BOX - The main content container style
   Used for all sections/content areas
   ============================================ */
.retro-box {
  background: linear-gradient(
    180deg,
    rgba(44, 24, 16, 0.95) 0%,
    rgba(26, 15, 8, 0.98) 100%
  );
  border: 3px outset var(--color-gold-dark);
  padding: 16px 20px;
  margin: 16px 0;
  position: relative;
}

/* Inner decorative border on retro boxes */
.retro-box::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(218, 165, 32, 0.2);
  pointer-events: none;
}

/* Section title inside a retro box */
.section-title {
  font-size: 1.5em;
  text-align: center;
  color: var(--color-gold-light);
  text-shadow: 2px 2px 6px rgba(0,0,0,0.9), 0 0 15px rgba(218, 165, 32, 0.4);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-family: Georgia, serif;
}

.section-icon {
  font-size: 1.2em;
  margin: 0 8px;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
#about .about-inner {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
}

/* Photo placeholder box */
.photo-placeholder {
  width: 180px;
  min-width: 180px;
  height: 220px;
  background: linear-gradient(135deg, var(--color-wood-light) 0%, var(--color-wood-medium) 100%);
  border: 4px inset var(--color-gold-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-brass);
  font-family: "Courier New", monospace;
  font-size: 11px;
  padding: 8px;
  flex-shrink: 0;
}

.photo-placeholder span {
  font-size: 2em;
  display: block;
  margin-bottom: 8px;
}

.about-text {
  flex: 1;
  min-width: 200px;
}

/* Under construction note */
.under-construction-note {
  background: #ffff00;
  color: #000;
  font-family: "Courier New", monospace;
  font-size: 11px;
  font-weight: bold;
  padding: 4px 8px;
  border: 2px inset #cccc00;
  margin-bottom: 10px;
  animation: blink-slow 3s step-end infinite;
}

/* ============================================
   GALLERY SECTION
   ============================================ */
#gallery .gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 10px;
}

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

/* Image placeholder boxes in gallery */
.gallery-img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--color-wood-light) 0%, var(--color-wood-medium) 50%, var(--color-wood-light) 100%);
  border: 3px inset var(--color-gold-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: "Courier New", monospace;
  font-size: 10px;
  color: var(--color-brass);
  margin-bottom: 6px;
  position: relative;
  overflow: hidden;
}

.gallery-img-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    95deg,
    transparent 0px,
    transparent 4px,
    rgba(205, 133, 63, 0.08) 4px,
    rgba(205, 133, 63, 0.08) 5px
  );
}

.gallery-img-placeholder .img-icon {
  font-size: 2em;
  display: block;
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
}

.gallery-caption {
  font-family: "Courier New", monospace;
  font-size: 10px;
  color: var(--color-brass);
  line-height: 1.3;
}

/* ============================================
   CURRENTLY MAKING SECTION
   Work in progress project cards
   ============================================ */
#currently-making .wip-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wip-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(0,0,0,0.3);
  border: 2px inset var(--color-gold-dark);
  padding: 10px;
  flex-wrap: wrap;
}

.wip-img-placeholder {
  width: 100px;
  min-width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--color-wood-light) 0%, var(--color-wood-medium) 100%);
  border: 2px inset var(--color-gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  flex-shrink: 0;
}

.wip-info {
  flex: 1;
  min-width: 150px;
}

.wip-title {
  color: var(--color-gold-light);
  font-weight: bold;
  font-family: Georgia, serif;
  margin-bottom: 4px;
}

.wip-desc {
  font-size: 12px;
  color: var(--color-text-light);
  margin-bottom: 8px;
}

/* Old-school progress bar */
.progress-label {
  font-family: "Courier New", monospace;
  font-size: 11px;
  color: var(--color-gold);
  margin-bottom: 3px;
}

.progress-bar-outer {
  width: 100%;
  max-width: 300px;
  height: 16px;
  background: #000;
  border: 2px inset #555;
  position: relative;
}

.progress-bar-inner {
  height: 100%;
  background: linear-gradient(90deg, var(--color-gold-dark) 0%, var(--color-gold) 100%);
  position: relative;
  overflow: hidden;
}

/* Animated sheen on progress bar */
.progress-bar-inner::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
  animation: progress-sheen 2s linear infinite;
}

@keyframes progress-sheen {
  0%   { left: -100%; }
  100% { left: 200%; }
}

/* ============================================
   COMMISSIONS SECTION
   ============================================ */
.commission-open-badge {
  display: inline-block;
  background: #006600;
  color: #00ff00;
  font-family: "Courier New", monospace;
  font-weight: bold;
  font-size: 13px;
  padding: 5px 14px;
  border: 3px outset #009900;
  letter-spacing: 2px;
  animation: blink 1.5s step-end infinite;
  margin-bottom: 12px;
}

.pricing-table {
  border-collapse: collapse;
  width: 100%;
  max-width: 500px;
  margin: 12px 0;
}

.pricing-table td, .pricing-table th {
  border: 1px solid var(--color-gold-dark);
  padding: 6px 12px;
  font-family: "Courier New", monospace;
  font-size: 12px;
  text-align: left;
}

.pricing-table th {
  background: var(--color-wood-light);
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pricing-table tr:nth-child(even) td {
  background: rgba(255,255,255,0.03);
}

.pricing-table td {
  color: var(--color-text-light);
}

.pricing-table td:last-child {
  color: var(--color-gold);
}

/* ============================================
   SOCIAL LINKS SECTION
   Retro web badge / button style
   ============================================ */
#social .social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 10px 0;
}

.social-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, var(--color-wood-grain) 0%, var(--color-wood-dark) 100%);
  color: var(--color-gold-light);
  text-decoration: none;
  font-family: "Courier New", monospace;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 1px;
  padding: 6px 14px;
  border: 3px outset var(--color-gold-dark);
  min-width: 130px;
  justify-content: center;
}

.social-badge:hover {
  border-style: inset;
  background: linear-gradient(180deg, var(--color-wood-dark) 0%, var(--color-wood-grain) 100%);
  color: var(--color-gold);
  text-shadow: 0 0 8px rgba(218, 165, 32, 0.6);
  text-decoration: none;
}

.social-badge .social-icon {
  font-size: 1.3em;
}

/* Social badge colors by platform */
.social-badge.instagram { border-color: #c13584; }
.social-badge.youtube   { border-color: #ff0000; }
.social-badge.etsy      { border-color: #f56400; }
.social-badge.email     { border-color: var(--color-gold-dark); }

/* ============================================
   CONTACT SECTION
   ============================================ */
#contact .contact-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.contact-info {
  flex: 1;
  min-width: 200px;
}

.contact-info p {
  font-family: "Courier New", monospace;
  font-size: 12px;
  margin-bottom: 8px;
}

.contact-label {
  color: var(--color-gold);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 11px;
  display: block;
  margin-bottom: 2px;
}

/* Retro form styles */
.retro-form {
  flex: 1;
  min-width: 220px;
}

.retro-form label {
  display: block;
  font-family: "Courier New", monospace;
  font-size: 11px;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 3px;
  margin-top: 8px;
}

.retro-form input,
.retro-form textarea,
.retro-form select {
  width: 100%;
  background: #0a0500;
  color: var(--color-gold-light);
  border: 2px inset var(--color-gold-dark);
  padding: 4px 8px;
  font-family: "Courier New", monospace;
  font-size: 12px;
  outline: none;
}

.retro-form input:focus,
.retro-form textarea:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 6px rgba(218, 165, 32, 0.4);
}

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

.retro-btn {
  display: inline-block;
  background: linear-gradient(180deg, var(--color-wood-grain) 0%, var(--color-wood-dark) 100%);
  color: var(--color-gold);
  font-family: "Courier New", monospace;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 16px;
  border: 3px outset var(--color-gold-dark);
  cursor: pointer;
  margin-top: 10px;
}

.retro-btn:hover {
  border-style: inset;
  color: var(--color-gold-light);
}

/* ============================================
   RETRO EXTRAS SECTION
   Visitor counter, guestbook, under construction
   ============================================ */
#retro-extras {
  text-align: center;
}

#retro-extras .extras-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
}

/* Guestbook button */
.guestbook-link {
  display: inline-block;
  background: linear-gradient(180deg, #1a0030 0%, #0d0020 100%);
  color: #cc88ff;
  text-decoration: none;
  font-family: "Courier New", monospace;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 1px;
  padding: 6px 14px;
  border: 3px outset #8844cc;
  text-transform: uppercase;
}

.guestbook-link:hover {
  border-style: inset;
  color: #eeccff;
  text-shadow: 0 0 8px #cc88ff;
  text-decoration: none;
}

/* (music button removed) */

/* Under construction area */
.under-construction-area {
  margin: 10px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* CSS animated construction sign */
.construction-sign {
  display: inline-block;
  position: relative;
  width: 120px;
  height: 40px;
  background: repeating-linear-gradient(
    45deg,
    #ffcc00 0px,
    #ffcc00 10px,
    #000000 10px,
    #000000 20px
  );
  border: 3px solid #ff8800;
  animation: construction-flash 0.8s step-end infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

.construction-sign span {
  background: #ffcc00;
  color: #000;
  font-family: "Courier New", monospace;
  font-weight: bold;
  font-size: 10px;
  padding: 2px 6px;
  letter-spacing: 1px;
}

@keyframes construction-flash {
  0%, 100% { border-color: #ff8800; }
  50%       { border-color: #ffff00; }
}

/* ============================================
   FOOTER
   ============================================ */
#site-footer {
  background: linear-gradient(180deg, var(--color-wood-dark) 0%, #0a0500 100%);
  border: 3px outset var(--color-gold-dark);
  border-bottom: none;
  padding: 16px;
  text-align: center;
  margin-top: 8px;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 10px 0;
}

/* Classic retro "badge" buttons (88x31 style) */
.footer-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 31px;
  font-family: "Courier New", monospace;
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 0.5px;
  text-align: center;
  line-height: 1.1;
  padding: 2px 4px;
  border: 1px solid;
  text-decoration: none;
  overflow: hidden;
}

.footer-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.footer-badge.netscape {
  background: linear-gradient(135deg, #003366, #0055aa);
  color: #ffffff;
  border-color: #aaccff;
}

.footer-badge.html4 {
  background: linear-gradient(135deg, #cc3300, #aa2200);
  color: #ffffff;
  border-color: #ffaa88;
}

.footer-badge.made-with {
  background: linear-gradient(135deg, #1a0f08, #3d2314);
  color: var(--color-gold);
  border-color: var(--color-gold-dark);
}

.footer-badge.res {
  background: linear-gradient(135deg, #003300, #001a00);
  color: #00ff00;
  border-color: #00aa00;
}

.footer-text {
  font-family: "Courier New", monospace;
  font-size: 10px;
  color: var(--color-gold-dark);
  margin: 4px 0;
  letter-spacing: 1px;
}

/* ============================================
   GUESTBOOK PAGE STYLES
   ============================================ */
.guestbook-entry {
  background: rgba(0, 0, 0, 0.4);
  border: 2px inset var(--color-gold-dark);
  padding: 10px 14px;
  margin-bottom: 10px;
}

.entry-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.entry-name {
  color: var(--color-gold);
  font-weight: bold;
  font-family: "Courier New", monospace;
  font-size: 13px;
}

.entry-date {
  color: var(--color-gold-dark);
  font-family: "Courier New", monospace;
  font-size: 10px;
}

.entry-location {
  color: var(--color-brass);
  font-family: "Courier New", monospace;
  font-size: 11px;
  margin-bottom: 4px;
}

.entry-message {
  color: var(--color-text-light);
  font-size: 13px;
  font-family: Georgia, serif;
  font-style: italic;
}

.guestbook-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 8px;
}

.guestbook-edit-grid label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: var(--color-gold);
  font-family: "Courier New", monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.guestbook-edit-grid input,
.guestbook-edit-grid textarea {
  background: #0a0500;
  color: var(--color-gold-light);
  border: 1px inset var(--color-gold-dark);
  font-family: "Courier New", monospace;
  font-size: 11px;
  padding: 4px 6px;
}

.guestbook-edit-grid label:last-child {
  grid-column: 1 / -1;
}

.guestbook-edit-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.gb-entry-delete {
  background: linear-gradient(180deg,#1a0000 0%,#0d0000 100%);
  color: #ff8888;
  border-color: #660000;
}

/* No entries message */
.no-entries {
  text-align: center;
  font-family: "Courier New", monospace;
  color: var(--color-gold-dark);
  padding: 20px;
}

/* ============================================
   MOBILE RESPONSIVE
   On small screens, simplify the layout.
   Decorations are hidden (too complex for mobile).
   ============================================ */
@media (max-width: 600px) {
  /* Hide decorations on mobile */
  #decorations-layer {
    display: none;
  }

  #site-title {
    font-size: 1.6em;
  }

  #site-subtitle {
    font-size: 0.75em;
  }

  #main-nav a {
    font-size: 9px;
    padding: 3px 6px;
  }

  #gallery .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  #about .about-inner {
    flex-direction: column;
  }

  .photo-placeholder {
    width: 100%;
    height: 150px;
  }

  .wip-card {
    flex-direction: column;
  }

  #contact .contact-grid {
    flex-direction: column;
  }

  .pricing-table {
    font-size: 10px;
  }
}

@media (max-width: 400px) {
  #gallery .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   GALLERY — real images + see-more + edit bar
   ============================================ */
.gallery-real-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border: 3px inset var(--color-gold-dark);
  display: block;
  cursor: zoom-in;
  margin-bottom: 6px;
}

.gallery-controls {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 14px;
  flex-wrap: wrap;
}

.gallery-add-btn {
  background: linear-gradient(180deg, #001a00 0%, #000d00 100%);
  color: #90ee90;
  border-color: #2d5a2d;
}

.gallery-edit-bar {
  display: flex;
  gap: 4px;
  align-items: center;
  margin-top: 4px;
  flex-wrap: wrap;
}

.gallery-edit-btn {
  font-size: 9px;
  padding: 3px 6px;
  letter-spacing: 0;
}

.gallery-remove-btn {
  background: linear-gradient(180deg, #1a0000 0%, #0d0000 100%);
  color: #ff8888;
  border-color: #660000;
}

.gallery-caption-input {
  background: #0a0500;
  color: var(--color-gold-light);
  border: 1px solid var(--color-gold-dark);
  font-family: "Courier New", monospace;
  font-size: 10px;
  padding: 2px 4px;
  width: 100%;
  max-width: 120px;
}

/* ============================================
   LIGHTBOX
   ============================================ */
#lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}

#lightbox-inner {
  max-width: 90vw;
  max-height: 90vh;
  text-align: center;
}

#lightbox-inner img {
  max-width: 100%;
  max-height: 80vh;
  border: 3px outset var(--color-gold-dark);
  display: block;
  margin: 0 auto;
}

#lightbox-inner p {
  font-family: "Courier New", monospace;
  font-size: 12px;
  color: var(--color-brass);
  margin: 8px 0;
}

#lightbox-close {
  background: linear-gradient(180deg, var(--color-wood-grain) 0%, var(--color-wood-dark) 100%);
  color: var(--color-gold);
  font-family: "Courier New", monospace;
  font-size: 11px;
  font-weight: bold;
  padding: 5px 14px;
  border: 2px outset var(--color-gold-dark);
  cursor: pointer;
  margin-top: 6px;
}

/* ============================================
   SOCIAL BADGE WRAPPER — edit mode controls
   ============================================ */
.social-badge-wrapper {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.social-edit-controls {
  display: flex;
  gap: 2px;
  justify-content: center;
  margin-top: 2px;
}

.social-edit-remove,
.social-edit-settings {
  background: linear-gradient(180deg, var(--color-wood-grain) 0%, var(--color-wood-dark) 100%);
  color: var(--color-gold);
  border: 2px outset var(--color-gold-dark);
  font-family: "Courier New", monospace;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 6px;
  cursor: pointer;
  line-height: 1;
}

.social-edit-remove {
  color: #ff8888;
  border-color: #660000;
  background: linear-gradient(180deg, #1a0000 0%, #0d0000 100%);
}

.social-edit-remove:hover { color: #ffaaaa; }
.social-edit-settings:hover { color: var(--color-gold-light); }

/* Settings panel */
.social-settings-panel {
  background: rgba(10, 5, 0, 0.97);
  border: 2px inset var(--color-gold-dark);
  padding: 8px 10px;
  min-width: 220px;
  z-index: 500;
  position: relative;
}

.ss-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 6px;
  gap: 2px;
}

.ss-row label {
  font-family: "Courier New", monospace;
  font-size: 9px;
  color: var(--color-gold-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ss-input {
  background: #0a0500;
  color: var(--color-gold-light);
  border: 1px inset var(--color-gold-dark);
  font-family: "Courier New", monospace;
  font-size: 11px;
  padding: 3px 5px;
  width: 100%;
}

.ss-color-swatch {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 1px solid var(--color-gold-dark);
  vertical-align: middle;
  margin-left: 4px;
  flex-shrink: 0;
}

.ss-icon-preview {
  height: 20px;
  vertical-align: middle;
  margin-left: 6px;
  border: 1px solid var(--color-gold-dark);
}

.ss-row .ss-color {
  display: inline-block;
  width: 90px;
}

.ss-save {
  margin-top: 4px;
  font-size: 10px;
  padding: 4px 10px;
}

.social-add-btn {
  align-self: center;
  margin-top: 4px;
  font-size: 11px;
  padding: 6px 14px;
  background: linear-gradient(180deg, #001a00 0%, #000d00 100%);
  color: #90ee90;
  border-color: #2d5a2d;
}

.social-icon-img {
  height: 1.2em;
  width: auto;
  vertical-align: middle;
  margin-right: 4px;
  image-rendering: pixelated;
}

#footer-badges-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: flex-start;
}

.footer-badge-wrapper {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.custom-footer-badge {
  color: #ffffff;
}

.footer-badge-settings-panel textarea {
  resize: vertical;
  min-height: 58px;
}

/* ============================================
   TEXT FORMATTING TOOLBAR
   ============================================ */
#format-toolbar {
  display: none;
  position: absolute;
  z-index: 10001;
  background: linear-gradient(180deg, #1a1208 0%, #0d0800 100%);
  border: 2px outset var(--color-gold-dark);
  padding: 3px 4px;
  gap: 2px;
  flex-wrap: wrap;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

#format-toolbar button {
  background: linear-gradient(180deg, var(--color-wood-grain) 0%, var(--color-wood-dark) 100%);
  color: var(--color-gold);
  border: 2px outset var(--color-gold-dark);
  font-family: "Courier New", monospace;
  font-size: 12px;
  font-weight: bold;
  padding: 2px 7px;
  cursor: pointer;
  min-width: 26px;
  text-align: center;
  line-height: 1.3;
}

#format-toolbar button:hover {
  border-style: inset;
  color: var(--color-gold-light);
}

#color-palette {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(10, 5, 0, 0.97);
  border: 2px inset var(--color-gold-dark);
  padding: 6px;
  gap: 4px;
  flex-wrap: wrap;
  max-width: 200px;
  z-index: 10002;
}

.color-swatch {
  width: 22px;
  height: 22px;
  border: 2px outset rgba(218, 165, 32, 0.5);
  cursor: pointer;
  padding: 0;
  font-size: 14px;
  line-height: 22px;
  text-align: center;
}

.color-swatch:hover {
  border-color: var(--color-gold-light);
  transform: scale(1.15);
}

.color-add-btn {
  background: #1a1a1a !important;
  color: var(--color-gold);
  font-weight: bold;
  font-family: "Courier New", monospace;
}

/* ============================================
   DECORATION CONFIG PANEL
   ============================================ */
#deco-config-panel {
  display: none;
  position: absolute;
  z-index: 10001;
  background: linear-gradient(180deg, rgba(26, 18, 8, 0.98) 0%, rgba(10, 5, 0, 0.99) 100%);
  border: 2px outset var(--color-gold-dark);
  padding: 10px 12px;
  min-width: 180px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

#banner-editor-panel {
  display: none;
  position: fixed;
  right: 20px;
  bottom: 185px;
  width: min(420px, calc(100vw - 40px));
  z-index: 10001;
  background: linear-gradient(180deg, rgba(26, 18, 8, 0.98) 0%, rgba(10, 5, 0, 0.99) 100%);
  border: 2px outset var(--color-gold-dark);
  padding: 10px 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

.banner-editor-header {
  font-family: "Courier New", monospace;
  font-size: 11px;
  font-weight: bold;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  text-align: center;
}

#banner-editor-text {
  width: 100%;
  min-height: 90px;
  background: #0a0500;
  color: var(--color-gold-light);
  border: 2px inset var(--color-gold-dark);
  font-family: "Courier New", monospace;
  font-size: 12px;
  padding: 6px 8px;
  resize: vertical;
}

.banner-editor-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.deco-config-header {
  font-family: "Courier New", monospace;
  font-size: 11px;
  font-weight: bold;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  text-align: center;
}

.deco-config-row {
  margin-bottom: 6px;
}

.deco-config-row label {
  display: block;
  font-family: "Courier New", monospace;
  font-size: 9px;
  color: var(--color-gold-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.deco-config-row input[type="number"] {
  background: #0a0500;
  color: var(--color-gold-light);
  border: 1px inset var(--color-gold-dark);
  font-family: "Courier New", monospace;
  font-size: 11px;
  padding: 3px 5px;
  width: 80px;
}

/* ============================================
   WIP EDIT CONTROLS
   ============================================ */
.wip-edit-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.wip-edit-input {
  background: #0a0500;
  color: var(--color-gold-light);
  border: 1px inset var(--color-gold-dark);
  font-family: "Courier New", monospace;
  font-size: 11px;
  padding: 3px 5px;
  flex: 1;
  min-width: 0;
}

.wip-delete-btn {
  display: inline-block;
}

/* Custom decoration dismiss animation */
.decoration.custom-deco {
  pointer-events: auto;
  cursor: pointer;
}

body:not(.edit-mode) .decoration.custom-deco {
  cursor: pointer;
  pointer-events: auto;
}

body:not(.edit-mode) .decoration.custom-deco:hover {
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.3));
}

/* ============================================
   EDIT MODE — contenteditable highlights
   ============================================ */
.edit-mode-editable {
  outline: 1px dashed rgba(218, 165, 32, 0.5);
  min-height: 1em;
  cursor: text;
}

.edit-mode-editable:hover {
  outline-color: var(--color-gold);
  background: rgba(218, 165, 32, 0.04);
}

.edit-mode-editable:focus {
  outline: 2px solid var(--color-gold);
  background: rgba(218, 165, 32, 0.06);
}

/* Clickable image areas in edit mode */
body.edit-mode .wip-img-placeholder,
body.edit-mode #profile-photo-placeholder {
  outline: 2px dashed rgba(218, 165, 32, 0.6);
  cursor: pointer;
}

body.edit-mode .wip-img-placeholder:hover,
body.edit-mode #profile-photo-placeholder:hover {
  outline-color: var(--color-gold);
  filter: brightness(1.2);
}

/* ============================================
   EDIT TOOLBAR (floating, above edit-mode-btn)
   ============================================ */
#edit-toolbar {
  display: none;
  position: fixed;
  bottom: 60px;
  right: 20px;
  flex-direction: column;
  gap: 6px;
  z-index: 1000;
}

.edit-toolbar-btn {
  background: linear-gradient(180deg, #001a1a 0%, #000d0d 100%);
  color: #00dddd;
  border: 2px outset #005555;
  font-family: "Courier New", monospace;
  font-size: 10px;
  font-weight: bold;
  padding: 5px 10px;
  cursor: pointer;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
}

.edit-toolbar-btn:hover {
  color: #00ffff;
  border-style: inset;
}
