/* Christmas Theme - Shared Styles */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(135deg, #1a472a 0%, #2d5a3d 30%, #1a472a 60%, #8b0000 100%);
  min-height: 100vh;
  color: #fff;
  position: relative;
  overflow-x: hidden;
  line-height: 1.7;
}

/* Snowflakes */
.snowflakes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.snowflake {
  position: absolute;
  top: -10px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  animation: fall linear infinite;
}

@keyframes fall {
  0% {
    transform: translateY(-10px) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0.3;
  }
}

.snowflake:nth-child(1) { left: 5%; animation-duration: 10s; animation-delay: 0s; font-size: 0.8rem; }
.snowflake:nth-child(2) { left: 15%; animation-duration: 12s; animation-delay: 2s; font-size: 1.2rem; }
.snowflake:nth-child(3) { left: 25%; animation-duration: 8s; animation-delay: 4s; font-size: 0.6rem; }
.snowflake:nth-child(4) { left: 35%; animation-duration: 14s; animation-delay: 1s; font-size: 1rem; }
.snowflake:nth-child(5) { left: 45%; animation-duration: 9s; animation-delay: 3s; font-size: 0.9rem; }
.snowflake:nth-child(6) { left: 55%; animation-duration: 11s; animation-delay: 5s; font-size: 1.1rem; }
.snowflake:nth-child(7) { left: 65%; animation-duration: 13s; animation-delay: 0.5s; font-size: 0.7rem; }
.snowflake:nth-child(8) { left: 75%; animation-duration: 10s; animation-delay: 2.5s; font-size: 1.3rem; }
.snowflake:nth-child(9) { left: 85%; animation-duration: 15s; animation-delay: 4.5s; font-size: 0.8rem; }
.snowflake:nth-child(10) { left: 95%; animation-duration: 7s; animation-delay: 1.5s; font-size: 1rem; }

/* Layout */
header, main, footer {
  position: relative;
  z-index: 1;
}

header {
  text-align: center;
  padding: 2rem 1rem;
}

header h1 {
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

header p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
}

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
}

footer {
  text-align: center;
  padding: 3rem 1rem;
  color: rgba(255, 255, 255, 0.5);
}

footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: color 0.3s ease, border-color 0.3s ease;
}

footer a:hover {
  color: #fff;
  border-color: #fff;
}

/* Content sections (for instructions page) */
section {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

h2 {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

h3 {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin: 1.5rem 0 0.75rem 0;
}

p {
  margin-bottom: 1rem;
}

ul, ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Highlight styles */
.highlight {
  background: rgba(255, 215, 0, 0.3);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-weight: 500;
}

.button-look {
  background: #c41e3a;
  color: #fff;
  padding: 0.2em 0.5em;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.9em;
}

.folder-name {
  background: rgba(255, 255, 255, 0.2);
  color: #90EE90;
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-family: monospace;
  font-weight: 500;
}

.tip {
  background: rgba(144, 238, 144, 0.2);
  border-left: 4px solid #90EE90;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
}

.tip strong {
  color: #90EE90;
}

.warning {
  background: rgba(255, 215, 0, 0.2);
  border-left: 4px solid #FFD700;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
}

.warning strong {
  color: #FFD700;
}

.interface-diagram {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 1.25rem;
  margin: 1rem 0;
  font-family: monospace;
  font-size: 0.9rem;
  line-height: 1.5;
}

.interface-diagram .label {
  color: rgba(255, 255, 255, 0.6);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.85rem;
}

/* Slideshow styles (for index page) */
.slideshow-container {
  position: relative;
}

.slideshow {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.slideshow img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slideshow img.active {
  opacity: 1;
}

.slideshow-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  padding: 2rem;
}

.slideshow-placeholder svg {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.slideshow-controls {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.slideshow-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: background 0.3s ease;
}

.slideshow-dot.active {
  background: #fff;
}

.controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.controls button {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.3s ease;
}

.controls button:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Responsive */
@media (max-width: 600px) {
  header h1 {
    font-size: 1.8rem;
  }

  .slideshow {
    aspect-ratio: 4 / 3;
  }

  section {
    padding: 1.5rem;
  }
}
