/* Anaula XP-Style Clone CSS */

/* Reset and Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body, html {
  overflow: hidden;
  font-family: 'VT323', monospace;
  line-height: 1.5;
}

/* Retro Font Classes */
.font-retro {
  font-family: 'VT323', monospace;
}

.font-xp {
  font-family: 'Microsoft Sans Serif', Arial, sans-serif;
}

/* Main Container */
.retro-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: #008080;
  overflow: hidden;
}

/* Canvas for Cell Animation */
#cell-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  filter: blur(1px) contrast(1.2);
}

/* Text Overlay */
.text-overlay {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  text-align: center;
  pointer-events: none;
  padding: 1rem;
}

/* Hero Box */
.hero-box {
  background: rgba(255, 255, 255, 0.95);
  border: 3px solid #059669;
  border-radius: 16px;
  padding: 2.5rem 3rem;
  max-width: 1200px;
  pointer-events: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Hero headline */
.hero-headline {
  font-family: 'Courier New', Courier, 'American Typewriter', monospace;
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.1;
  letter-spacing: 0;
  color: #065f46;
  white-space: nowrap;
}

/* Hero subheadline */
.hero-subheadline {
  font-family: 'Courier New', Courier, 'American Typewriter', monospace;
  font-weight: 400;
  font-size: 1.1rem;
  line-height: 1.4;
  color: #047857;
}

/* Hero tagline */
.hero-tagline {
  opacity: 0.85;
  font-size: 0.95em;
  margin-bottom: 1.5rem;
}

/* Hero CTA */
.hero-cta {
  font-family: 'Courier New', Courier, 'American Typewriter', monospace;
  font-size: 0.9rem;
  color: #059669;
  margin-top: 0.5rem;
}

.hero-cta a {
  color: #065f46;
  text-decoration: underline;
  font-weight: 600;
}

.hero-cta a:hover {
  color: #047857;
}

/* Dynamic word styling */
#dynamic-product,
#dynamic-location {
  display: inline-block;
  min-width: 1ch;
}

/* Blinking cursor for dynamic words */
#dynamic-product::after,
#dynamic-location::after {
  content: '|';
  animation: blink 0.7s step-end infinite;
  margin-left: 2px;
  color: #ffffff;
  -webkit-text-stroke: 0;
  text-shadow: none;
}

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

/* Responsive hero text */
@media (min-width: 640px) {
  .hero-headline {
    font-size: 3rem;
  }
  .hero-subheadline {
    font-size: 1.35rem;
  }
  .hero-box {
    padding: 3rem 4rem;
  }
}

@media (min-width: 768px) {
  .hero-headline {
    font-size: 3.5rem;
  }
  .hero-subheadline {
    font-size: 1.5rem;
  }
}

/* Coming soon text (legacy) */
.coming-soon {
  font-family: 'Courier New', Courier, 'American Typewriter', monospace;
  font-weight: 400;
  font-size: 0.875rem;
  color: #059669;
}

@media (min-width: 640px) {
  .coming-soon {
    font-size: 1.25rem;
  }
}

/* CRT Scanline Effect */
.retro-container::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  background: repeating-linear-gradient(to bottom,
    rgba(0,0,0,0) 0px, rgba(0,0,0,0) 2px, rgba(0,0,0,0.2) 3px, rgba(0,0,0,0.2) 4px);
  pointer-events: none;
}

/* Vignette Effect */
.retro-container::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 6;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) 50%, rgba(0,0,0,0.5) 100%);
  pointer-events: none;
}

/* Desktop Icons */
.desktop-icons {
  position: absolute;
  z-index: 20;
  left: 16px;
  top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, 88px);
  gap: 12px;
  width: 100%;
  padding-right: 16px;
  box-sizing: border-box;
}

.desk-icon {
  width: 88px;
  height: 96px;
  text-align: center;
  cursor: pointer;
  user-select: none;
}

.desk-icon .icon-box {
  width: 64px;
  height: 64px;
  margin: 0 auto 4px;
  border-radius: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  font-size: 32px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
}

.desk-icon span {
  display: block;
  margin: 0;
  padding: 2px 4px;
  font-size: 12px;
  color: white;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.8);
  background: rgba(0,120,215,0.5);
  border: 1px solid rgba(0,0,0,0.3);
  border-radius: 2px;
  word-break: break-all;
}

/* Windows Root */
#windows-root {
  position: absolute;
  inset: 0;
  z-index: 25;
  pointer-events: none;
}

/* XP-Style Windows */
.xp-window {
  position: absolute;
  width: 600px;
  height: 450px;
  background: #ece9d8;
  border: 2px solid;
  border-color: #dfdfdf #7f7f7f #7f7f7f #dfdfdf;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
  overflow: hidden;
  pointer-events: auto;
  font-family: 'Microsoft Sans Serif', Arial, sans-serif;
}

/* Window Title Bar */
.xp-titlebar {
  height: 24px;
  display: flex;
  align-items: center;
  padding: 0 4px;
  background: linear-gradient(to bottom, #0997ff, #0053ee 8%, #0050ee 40%, #06f 88%, #06f);
  color: white;
  cursor: default;
  font-size: 11px;
  font-weight: bold;
}

.xp-titlebar .icon {
  margin-left: 2px;
  margin-right: 4px;
  font-size: 14px;
}

.xp-titlebar .title {
  margin-left: 4px;
  letter-spacing: 0.3px;
}

/* Window Controls */
.xp-controls {
  display: flex;
  margin-left: auto;
}

.xp-controls button {
  width: 21px;
  height: 21px;
  margin: 0 0 0 2px;
  border: 1px solid;
  border-color: #dfdfdf #7f7f7f #7f7f7f #dfdfdf;
  background: #c0c0c0;
  color: black;
  font-size: 10px;
  line-height: 10px;
  text-align: center;
  cursor: default;
  font-family: 'Microsoft Sans Serif', Arial, sans-serif;
  font-weight: bold;
}

.xp-controls button:hover {
  background: #000080;
  color: white;
}

.xp-controls button:active {
  border-color: #7f7f7f #dfdfdf #dfdfdf #7f7f7f;
}

/* Window Menu Bar */
.xp-menubar {
  height: 20px;
  background: #ece9d8;
  display: flex;
  align-items: center;
  padding: 0 2px;
  border-bottom: 1px solid #dfdfdf;
  font-size: 11px;
}

.xp-menubar .menu-item {
  padding: 2px 8px;
  cursor: default;
  color: #000;
}

.xp-menubar .menu-item:hover {
  background: #316ac5;
  color: white;
}

/* Window Status Bar */
.xp-statusbar {
  height: 20px;
  background: #ece9d8;
  border-top: 1px solid #dfdfdf;
  display: flex;
  align-items: center;
  padding: 0 4px;
  font-size: 10px;
  color: #000;
}

.xp-statusbar .status-section {
  padding: 0 8px;
  border-right: 1px solid #808080;
  border-left: 1px solid #fff;
}

.xp-statusbar .status-section:first-child {
  border-left: none;
}

/* Window Body */
.xp-window .window-body {
  padding: 12px;
  height: calc(100% - 65px);
  overflow: auto;
  background: #ffffff;
  color: #000;
  font-size: 11px;
  line-height: 18px;
  font-family: 'Lucida Console', 'Courier New', monospace;
}

.window-body h3 {
  font-family: 'Microsoft Sans Serif', Arial, sans-serif;
  font-size: 13px;
  margin: 0 0 12px;
  color: #000;
  font-weight: 600;
}

.window-body p {
  font-family: 'Microsoft Sans Serif', Arial, sans-serif;
  font-size: 11px;
  line-height: 16px;
  margin: 0 0 12px;
}

.window-body p:last-child {
  margin-bottom: 0;
}

.window-body a {
  color: #0000ff;
  text-decoration: underline;
}

.window-body a:hover {
  color: #ff0000;
}

.window-body strong {
  font-weight: 600;
}

/* Window Body Scrollbar */
.window-body::-webkit-scrollbar {
  width: 16px;
}

.window-body::-webkit-scrollbar-track {
  background: #ece9d8;
}

.window-body::-webkit-scrollbar-thumb {
  background: #c0c0c0;
  border: 1px solid #808080;
}

.window-body::-webkit-scrollbar-thumb:hover {
  background: #a0a0a0;
}

.window-body::-webkit-scrollbar-button {
  background: #c0c0c0;
  border: 1px solid #808080;
  height: 16px;
}

/* Minimized State */
.minimized {
  display: none !important;
}

/* Taskbar Dock */
.taskbar-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 30px;
  z-index: 50;
  background: #c0c0c0;
  border-top: 2px solid #dfdfdf;
  display: flex;
  align-items: center;
  padding: 0 4px;
  gap: 4px;
  pointer-events: auto;
}

/* Task Button */
.task-btn {
  height: 22px;
  padding: 0 8px;
  background: #c0c0c0;
  border: 1px solid;
  border-color: #dfdfdf #7f7f7f #7f7f7f #dfdfdf;
  color: black;
  font-size: 12px;
  cursor: default;
  display: flex;
  align-items: center;
  box-shadow: inset -1px -1px 0 #000, inset 1px 1px 0 #fff;
}

.task-btn.active,
.task-btn:hover {
  background: #000080;
  color: white;
  border-color: #000080 #000080 #000080 #000080;
}

/* Resize Grip */
.resize-grip {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg,
    transparent 0%, transparent 40%,
    #808080 40%, #808080 42%,
    transparent 42%, transparent 50%,
    #808080 50%, #808080 52%,
    transparent 52%, transparent 60%,
    #808080 60%, #808080 62%,
    transparent 62%);
  cursor: nwse-resize;
}

/* XP Taskbar (Bottom) */
#xp-taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 38px;
}

.xp-taskbar-inner {
  height: 100%;
  display: flex;
  align-items: stretch;
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.65) 0%, rgba(255,255,255,0.25) 12%, rgba(255,255,255,0.00) 18%),
    linear-gradient(180deg, #3C77EF 0%, #3C77EF 34%, #2E63E7 52%, #244FDF 72%, #1C48DF 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.85),
    inset 0 2px 0 rgba(255,255,255,0.35),
    inset 0 -1px 0 rgba(0,0,0,0.55),
    inset 0 -3px 0 rgba(0,0,0,0.25),
    0 -1px 0 rgba(255,255,255,0.18);
  border-top: 1px solid rgba(0,0,0,0.18);
  font-family: Tahoma, Verdana, sans-serif;
}

/* Start Button */
#xp-start-btn {
  display: flex;
  align-items: center;
  height: 100%;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.65) 0%, rgba(255,255,255,0.00) 22%, rgba(255,255,255,0.00) 78%, rgba(0,0,0,0.08) 100%),
    linear-gradient(180deg, #74C078 0%, #66B86F 32%, #3E9656 66%, #1F6D43 100%);
  border: 1px solid rgba(0,0,0,0.55);
  border-left: none;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  padding-left: 0;
  padding-right: 14px;
  gap: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.75),
    inset 0 -1px 0 rgba(0,0,0,0.35),
    0 1px 0 rgba(255,255,255,0.35),
    0 2px 0 rgba(0,0,0,0.08);
  cursor: pointer;
}

.start-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  margin-left: 0;
  padding-left: 0;
  width: 36px;
}

.start-icon svg {
  display: block;
  margin: 0;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,0.35));
}

#xp-start-btn span:last-child {
  color: #ffffff;
  opacity: 0.98;
  display: inline-block;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(0,0,0,0.45);
  letter-spacing: 0.2px;
}

/* Task Area */
.task-area {
  flex: 1;
  position: relative;
}

.task-area-highlight {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 6px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.35), rgba(255,255,255,0));
}

.task-separator {
  position: absolute;
  right: 176px;
  top: 7px;
  height: 22px;
  width: 1px;
  background: rgba(255,255,255,0.75);
  box-shadow: 1px 0 0 rgba(0,0,0,0.5);
  border-radius: 1px;
}

/* Tray Cluster */
.tray-cluster {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 8px;
  padding: 0 10px;
}

.tray-chevron {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

.tray-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tray-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#xp-clock {
  color: #ffffff;
  font-size: 12px;
  line-height: 1;
  padding: 2px 8px;
  text-shadow: 0 1px 0 rgba(0,0,0,0.45);
}

/* Cookie Consent Banner */
#cc-banner {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: calc(100% - 1rem);
  max-width: 48rem;
}

#cc-banner.hidden {
  display: none;
}

.cc-alert {
  background: #ece9d8;
  border: 2px solid;
  border-color: #dfdfdf #7f7f7f #7f7f7f #dfdfdf;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.cc-content {
  flex: 1;
  min-width: 200px;
}

.cc-content h3 {
  font-family: 'Microsoft Sans Serif', Arial, sans-serif;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #000;
}

.cc-content p {
  font-family: 'Microsoft Sans Serif', Arial, sans-serif;
  font-size: 11px;
  color: #333;
  margin-bottom: 4px;
}

.cc-content .font-medium {
  font-weight: 600;
}

.cc-buttons {
  display: flex;
  gap: 8px;
}

.cc-btn {
  padding: 4px 16px;
  font-family: 'Microsoft Sans Serif', Arial, sans-serif;
  font-size: 11px;
  border: 1px solid;
  border-color: #dfdfdf #7f7f7f #7f7f7f #dfdfdf;
  background: #c0c0c0;
  cursor: pointer;
}

.cc-btn:hover {
  background: #d0d0d0;
}

.cc-btn:active {
  border-color: #7f7f7f #dfdfdf #dfdfdf #7f7f7f;
}

/* Typography */
.text-5xl { font-size: 3rem; line-height: 1; }
.text-7xl { font-size: 4.5rem; line-height: 1; }
.text-8xl { font-size: 6rem; line-height: 1; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }

.mb-6 { margin-bottom: 1.5rem; }
.mb-24 { margin-bottom: 6rem; }
.max-w-4xl { max-width: 56rem; }

.absolute { position: absolute; }
.bottom-16 { bottom: 4rem; }

/* Animation */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Responsive */
@media (max-width: 640px) {
  .xp-window {
    width: 92%;
    height: 68%;
    left: 4% !important;
    top: 12% !important;
  }
  
  .desktop-icons {
    grid-template-columns: repeat(3, 88px);
  }
  
  .text-5xl { font-size: 3rem; }
  .text-2xl { font-size: 1.5rem; }
}

@media (min-width: 640px) {
  .sm\:text-7xl { font-size: 4.5rem; line-height: 1; }
  .sm\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .sm\:text-5xl { font-size: 3rem; line-height: 1; }
}

@media (min-width: 768px) {
  .md\:text-8xl { font-size: 6rem; line-height: 1; }
  .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .md\:block { display: block; }
}

@media (max-width: 768px) {
  .task-separator {
    display: none;
  }
}
