/* Hugo Boss Corporate Security Patch Portal - Design System */

:root {
  --bg-primary: #000000;            /* True Black */
  --bg-secondary: #0a0a0a;          /* Rich Charcoal */
  --bg-card: #080808;               /* Structured Minimal Black */
  --bg-card-hover: #121212;
  
  --color-primary: #ffffff;         /* Absolute White */
  --color-secondary: #a3a3a3;       /* High-Fashion Silver */
  --color-accent: #ffffff;          /* Standard High Contrast */
  --color-alert: #ff3333;           /* Corporate Warning Red */
  
  --text-main: #ffffff;             /* True White text */
  --text-muted: #a3a3a3;            /* Mid Gray text */
  --text-dark: #666666;             /* Dark Gray labels */
  
  --border-color: rgba(255, 255, 255, 0.12);
  --border-color-hover: rgba(255, 255, 255, 0.35);
  --glass-border: 1px solid rgba(255, 255, 255, 0.08);
  
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --max-width: 1100px;              /* Elegant, centered column */
  --header-height: 80px;
  --transition-normal: 0.25s cubic-bezier(0.25, 1, 0.5, 1); /* Snappy architectural transition */
}

/* Base resets & styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Elegant Thin Accent Line at the absolute top of the viewport */
.brand-line-accent {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  z-index: 1000;
}

/* Layout Utilities */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.main-content {
  padding: 50px 0 90px 0;
  flex-grow: 1;
}

/* Typography */
h1, h2, h3 {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.font-mono {
  font-family: var(--font-mono);
}

.font-bold {
  font-weight: 700;
}

.uppercase {
  text-transform: uppercase;
}

.text-alert {
  color: var(--color-alert) !important;
}

.text-warning {
  color: #ff9800 !important; /* Beautiful Corporate Orange */
}

/* Hugo Boss Branded Corporate Header */
.header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  background-color: #000000;
  position: sticky;
  top: 2px; /* Accounting for 2px brand-line */
  z-index: 100;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-logo {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.35em; /* Tracked out Hugo Boss style signature */
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.1;
  padding-right: 0.35em; /* Offsetting last letter tracking */
}

.brand-division {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--text-dark);
  text-transform: uppercase;
}

.header-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  border-radius: 0; /* Minimal sharp edges */
  text-transform: uppercase;
}

.badge-dot {
  width: 5px;
  height: 5px;
  background-color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 6px #ffffff;
  animation: pulse-monochrome 2s infinite;
}

@keyframes pulse-monochrome {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}

/* Hugo Boss System Alert Banner */
.instruction-banner {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-left: 3px solid #ffffff;
  border-radius: 0; /* Sharp, high-fashion architecture */
  padding: 28px;
  margin-bottom: 40px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.alert-icon-wrapper {
  background-color: #ffffff;
  border: none;
  padding: 12px;
  border-radius: 0; /* Sharp square */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #000000;
}

.alert-icon {
  width: 20px;
  height: 20px;
}

.alert-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.alert-text h1 {
  font-size: 1.15rem;
  letter-spacing: 0.15em;
  color: #fff;
}

.alert-text p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Patch Cards Grid (Side-by-Side with sharp edges) */
.patch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 45px;
}

.patch-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0; /* True sharp design */
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  transition: var(--transition-normal);
}

.patch-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-color-hover);
  background-color: var(--bg-card-hover);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.02);
}

.os-header {
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
}

.os-icon-wrapper {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-color);
  border-radius: 0; /* Sharp */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #ffffff;
  background-color: transparent;
}

.os-icon-wrapper svg {
  width: 20px;
  height: 20px;
}

.os-header h2 {
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  color: #fff;
}

/* Metadata Configuration */
.patch-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.detail-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.detail-row .label {
  color: var(--text-dark);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.detail-row .value {
  color: #ffffff;
  font-size: 0.85rem;
}

.value-sm {
  font-size: 0.78rem !important;
  color: var(--text-muted) !important;
}

.patch-instructions {
  background-color: #020202;
  border: 1px solid var(--border-color);
  padding: 18px;
  border-radius: 0; /* Sharp */
}

.patch-instructions p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.patch-instructions strong {
  color: #fff;
  font-weight: 600;
}

/* Buttons (Premium Monochrome Solid-Invert Hover) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 16px 28px;
  border-radius: 0; /* Sharp border edges represent architectural luxury fashion */
  cursor: pointer;
  text-decoration: none;
  border: 1px solid #ffffff;
  transition: var(--transition-normal);
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background-color: #ffffff;
  color: #000000;
}

.btn-primary:hover {
  background-color: #000000;
  color: #ffffff;
  border-color: #ffffff;
}

/* Quick Status List (Monochrome Outline Badge) */
.quick-status {
  display: flex;
  justify-content: center;
  gap: 36px;
  background-color: transparent;
  border: 1px solid var(--border-color);
  padding: 16px 32px;
  border-radius: 0; /* Sharp border */
  width: fit-content;
  margin: 0 auto;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.status-indicator {
  width: 4px;
  height: 4px;
  border-radius: 50%;
}

.status-indicator.active {
  background-color: #ffffff;
  box-shadow: 0 0 5px #ffffff;
}

/* Footer Section */
.footer {
  border-top: 1px solid var(--border-color);
  background-color: #000000;
  padding: 32px 0;
  margin-top: auto;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  font-size: 0.72rem;
  color: var(--text-dark);
  max-width: 680px;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.footer-meta {
  color: var(--text-dark);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* Modal Styling */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.93); /* Dark opaque backdrop */
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  width: 100%;
  max-width: 420px;
  padding: 40px 30px;
  text-align: center;
  position: relative;
  background-color: #080808;
  border: 1px solid var(--border-color-hover);
  border-radius: 0; /* Sharp border */
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  transition: var(--transition-normal);
}

.modal-close:hover {
  color: #fff;
}

.modal-icon-wrapper {
  width: 50px;
  height: 50px;
  background-color: transparent;
  border: 1px solid var(--border-color);
  border-radius: 0; /* Sharp */
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px auto;
  color: #ffffff;
}

.modal-icon {
  width: 20px;
  height: 20px;
}

.modal-content h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  letter-spacing: 0.12em;
  color: #fff;
}

.modal-content p {
  font-size: 0.8rem;
  margin-bottom: 24px;
  color: var(--text-muted);
  line-height: 1.5;
}

.download-progress-container {
  width: 100%;
  height: 3px; /* Extra thin structural line */
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 16px;
}

.download-progress-bar {
  width: 0%;
  height: 100%;
  background-color: #ffffff; /* Solid White progress bar */
  border-radius: 0;
}

.download-progress-status {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Responsive Styles */
@media (max-width: 950px) {
  .patch-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 650px) {
  .header-badge {
    display: none;
  }
  
  .instruction-banner {
    flex-direction: column;
    gap: 20px;
    padding: 24px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .footer-bottom p {
    max-width: 100%;
  }
  
  .quick-status {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}
