/* ===================================================================
   PACS27 — Website Styles
   Layout, components, responsive, dark/light theme
   Uses tokens.css for design tokens
   =================================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--pacs-font-body);
  background: var(--pacs-bg);
  color: var(--pacs-text);
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  color: var(--pacs-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--pacs-croit-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--pacs-space-6) var(--pacs-space-5);
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(142, 84, 233, 0.12), transparent),
    radial-gradient(ellipse 80% 50% at 80% 50%, rgba(229, 112, 0, 0.06), transparent),
    var(--pacs-bg);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}

[data-theme="light"] .hero::before {
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23191A1A' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* --- Content Container --- */
.content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  width: 100%;
}

/* --- Logos Section --- */
.logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--pacs-space-6);
  margin-bottom: var(--pacs-space-7);
  flex-wrap: wrap;
}

.logo {
  height: 50px;
  width: auto;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.logo:hover {
  opacity: 1;
}

.logo-pacs {
  height: 100px;
}

.logo-proxmox,
.logo-ceph {
  height: 40px;
}

/* --- Badge --- */
.badge {
  display: inline-block;
  padding: var(--pacs-space-2) var(--pacs-space-4);
  background: var(--pacs-glass-fill);
  border: 1px solid var(--pacs-glass-border);
  border-radius: var(--pacs-radius-pill);
  font-size: var(--pacs-fs-small);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--pacs-space-5);
  backdrop-filter: var(--pacs-glass-blur);
  -webkit-backdrop-filter: var(--pacs-glass-blur);
}

/* --- Typography --- */
h1 {
  font-family: var(--pacs-font-heading);
  font-size: clamp(2.5rem, 8vw, var(--pacs-fs-display));
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: var(--pacs-space-4);
  letter-spacing: -0.02em;
}

.title-highlight {
  background: var(--pacs-gradient-tri);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-family: var(--pacs-font-heading);
  font-size: clamp(1rem, 2.5vw, var(--pacs-fs-h2));
  color: var(--pacs-text-muted);
  margin-bottom: var(--pacs-space-7);
  font-weight: 400;
}

/* --- Event Details --- */
.event-details {
  display: flex;
  justify-content: center;
  gap: var(--pacs-space-6);
  margin-bottom: var(--pacs-space-7);
  flex-wrap: wrap;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: var(--pacs-space-3);
  font-size: var(--pacs-fs-body);
}

.detail-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--pacs-radius-md);
  background: var(--pacs-glass-fill);
  border: 1px solid var(--pacs-glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.detail-text {
  text-align: left;
}

.detail-label {
  font-size: var(--pacs-fs-label);
  color: var(--pacs-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.detail-value {
  font-weight: 600;
}

/* --- Coming Soon --- */
.coming-soon {
  font-size: var(--pacs-fs-lead);
  color: var(--pacs-text-muted);
  margin-bottom: var(--pacs-space-7);
}

/* --- CTA Button --- */
.sponsor-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--pacs-space-3);
  padding: var(--pacs-space-4) var(--pacs-space-6);
  background: var(--pacs-gradient-tri);
  color: var(--pacs-white);
  text-decoration: none;
  border-radius: var(--pacs-radius-pill);
  font-family: var(--pacs-font-heading);
  font-weight: 600;
  font-size: var(--pacs-fs-body);
  transition: all 0.3s ease;
  box-shadow: var(--pacs-glow);
  border: none;
}

.sponsor-cta:hover {
  transform: translateY(-3px);
  box-shadow: var(--pacs-shadow-lg);
  color: var(--pacs-white);
}

.sponsor-cta svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.sponsor-cta:hover svg {
  transform: translateX(4px);
}

/* --- Footer --- */
.footer {
  position: relative;
  padding: var(--pacs-space-5);
  background: var(--pacs-bg);
  border-top: 1px solid var(--pacs-glass-border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-trademarks p {
  font-size: 0.7rem;
  color: var(--pacs-slate-400);
  line-height: 1.6;
  margin: 0;
}

[data-theme="light"] .footer-trademarks p {
  color: var(--pacs-slate-500);
}

.footer-powered {
  display: flex;
  align-items: center;
  gap: var(--pacs-space-2);
  color: var(--pacs-text-muted);
  font-size: var(--pacs-fs-small);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    gap: var(--pacs-space-4);
    text-align: center;
  }
}

/* --- Theme Toggle --- */
.theme-toggle {
  position: fixed;
  top: var(--pacs-space-5);
  right: var(--pacs-space-5);
  z-index: 100;
  width: 44px;
  height: 44px;
  border-radius: var(--pacs-radius-pill);
  background: var(--pacs-glass-fill);
  border: 1px solid var(--pacs-glass-border);
  backdrop-filter: var(--pacs-glass-blur);
  -webkit-backdrop-filter: var(--pacs-glass-blur);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background: var(--pacs-surface);
  box-shadow: var(--pacs-shadow-md);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  color: var(--pacs-text);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

[data-theme="light"] .theme-toggle .icon-moon {
  display: block;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero {
    padding: var(--pacs-space-5) var(--pacs-space-4);
  }

  .logos {
    gap: var(--pacs-space-5);
  }

  .logo {
    height: 40px;
  }

  .logo-pacs {
    height: 70px;
  }

  .logo-proxmox,
  .logo-ceph {
    height: 30px;
  }

  .event-details {
    flex-direction: column;
    gap: var(--pacs-space-2);
    align-items: center;
  }

  .detail-item {
    width: 220px;
  }

  .sponsor-cta {
    width: 100%;
    justify-content: center;
  }

  .theme-toggle {
    top: var(--pacs-space-4);
    right: var(--pacs-space-4);
  }
}

@media (max-width: 480px) {
  .hero {
    padding: var(--pacs-space-4) var(--pacs-space-3);
  }

  .logos {
    flex-direction: column;
    gap: var(--pacs-space-4);
  }
}

/* --- Accessibility --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Focus States --- */
:focus-visible {
  outline: none;
  box-shadow: var(--pacs-focus-ring);
}

/* --- Print Styles --- */
@media print {
  .theme-toggle,
  .hero::before {
    display: none;
  }

  body {
    background: white;
    color: black;
  }
}
