/* Complete Windows XP Luna theme implementation */

/* XP Luna Color Palette */
:root {
  --xp-blue: #3a6ea5;
  --xp-green: #7dba00;
  --xp-highlight: #f6f8fa;
  --xp-taskbar-navy: #245196;
  --xp-warning-yellow: #ffe792;
  --xp-silver: #e3e9f2;
  --xp-shadow: #0a0f1a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Tahoma", "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
  color: #1f2937;
  background: linear-gradient(to bottom, #5a9fd4 0%, #7dba00 50%, #a8d46f 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

html {
  scroll-behavior: smooth;
}

/* XP Taskbar */
.xp-taskbar {
  background: linear-gradient(to bottom, #245196 0%, #1e3f7a 50%, #1a3566 100%);
  border-top: 1px solid #4a7bb8;
  box-shadow: 0 2px 8px rgba(10, 15, 26, 0.4);
}

.xp-taskbar.header-shrink {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  box-shadow: 0 4px 12px rgba(10, 15, 26, 0.5);
}

/* XP Start Button */
.xp-start {
  background: linear-gradient(to bottom, #5a9fd4 0%, #3a6ea5 100%);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: 1px solid #7ab8e8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 2px 4px rgba(10, 15, 26, 0.3);
  cursor: default;
}

/* XP Window */
.xp-window {
  background: #ece9d8;
  border-radius: 8px;
  border: 1px solid #0054e3;
  box-shadow: 0 4px 16px rgba(10, 15, 26, 0.3);
  overflow: hidden;
}

/* XP Titlebar */
.xp-titlebar {
  padding: 0.5rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.xp-title {
  font-weight: bold;
  font-size: 0.875rem;
  color: white;
  text-shadow: 1px 1px 2px rgba(10, 15, 26, 0.5);
}

/* XP Toolbar */
.xp-toolbar {
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #c0c0c0;
}

/* XP Explorer */
.xp-explorer {
  background: #ece9d8;
  border-radius: 8px;
  border: 1px solid #0054e3;
  box-shadow: 0 4px 12px rgba(10, 15, 26, 0.25);
  overflow: hidden;
}

/* XP Folder */
.xp-folder {
  color: #0054e3;
  font-weight: bold;
}

/* XP Status Bar */
.xp-status {
  background: linear-gradient(to bottom, #e3e9f2 0%, #d0d8e8 100%);
  padding: 0.375rem 1rem;
  border-top: 1px solid #c0c0c0;
  font-size: 0.75rem;
  color: #333;
}

/* XP Silver Background */
.xp-silver {
  background: linear-gradient(to bottom, #f6f8fa 0%, #e3e9f2 100%);
  border: 1px solid #c0c0c0;
}

/* XP Blue Background */
.xp-blue {
  background: linear-gradient(to bottom, #5a9fd4 0%, #3a6ea5 100%);
  border: 1px solid #7ab8e8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 2px 4px rgba(10, 15, 26, 0.2);
}

/* XP Green Background */
.xp-green {
  background: linear-gradient(to bottom, #9acd32 0%, #7dba00 100%);
  border: 1px solid #b8e356;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 2px 4px rgba(10, 15, 26, 0.2);
}

/* XP Shadow */
.xp-shadow {
  box-shadow: 0 2px 6px rgba(10, 15, 26, 0.3);
}

/* XP Sticker (System Info Banner) */
.xp-sticker {
  background: linear-gradient(to right, #ffe792 0%, #fff4c4 100%);
  border-bottom: 1px solid #e6d070;
  box-shadow: 0 1px 3px rgba(10, 15, 26, 0.1);
}

/* XP Badge */
.xp-badge {
  background: #ffe792;
  border: 1px solid #e6d070;
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: bold;
}

/* XP Grid Control Panel */
.xp-grid-ctlpanel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

/* XP Messenger Card */
.xp-messenger {
  background: linear-gradient(to bottom, #f6f8fa 0%, #e3e9f2 100%);
  border: 1px solid #c0c0c0;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(10, 15, 26, 0.15);
  transition: all 0.3s ease;
}

.xp-messenger:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(10, 15, 26, 0.25);
}

/* XP Outlook */
.xp-outlook {
  /* Inherits from xp-window */
}

/* XP IE Frame (Image Viewer) */
.xp-ieframe {
  border: 1px solid #c0c0c0;
  background: white;
  padding: 2px;
  box-shadow: inset 0 0 0 1px #e0e0e0;
}

.xp-ieframe img {
  display: block;
  width: 100%;
  height: auto;
}

/* XP Caption */
.xp-caption {
  font-size: 0.75rem;
  color: #666;
  font-style: italic;
  padding: 0.5rem;
  background: #f6f8fa;
  border-left: 3px solid #3a6ea5;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.5s ease-out forwards;
}

/* Form Inputs */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  transition: all 0.2s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #3a6ea5;
  box-shadow: 0 0 0 2px rgba(58, 110, 165, 0.2);
}

input.border-red-500 {
  border-color: #ef4444 !important;
}

input.border-green-500 {
  border-color: #7dba00 !important;
}

/* Checkbox */
input[type="checkbox"] {
  cursor: pointer;
  accent-color: #3a6ea5;
}

/* Buttons */
button {
  cursor: pointer;
  transition: all 0.2s ease;
}

button:hover {
  opacity: 0.9;
}

button:active {
  transform: scale(0.98);
}

/* Links */
a {
  transition: all 0.2s ease;
}

/* Cookie Popup */
#cookiePopup {
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #e3e9f2;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #5a9fd4 0%, #3a6ea5 100%);
  border-radius: 6px;
  border: 1px solid #7ab8e8;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #4a8ec4 0%, #2a5e95 100%);
}

/* Responsive */
@media (max-width: 1024px) {
  .xp-grid-ctlpanel {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 640px) {
  .xp-window {
    border-radius: 6px;
  }

  .xp-titlebar {
    padding: 0.375rem 0.75rem;
  }

  .xp-title {
    font-size: 0.75rem;
  }

  .xp-grid-ctlpanel {
    grid-template-columns: 1fr;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print */
@media print {
  body {
    background: white;
  }

  .xp-taskbar,
  #cookiePopup {
    display: none;
  }
}
