/*
 * Premium pages style for DRR DAMSON – złoty motyw
 *
 * Ten arkusz zastępuje neonowe kolory i ciemne tła
 * bardziej elegancką paletą z odcieniami złota i głębokiego brązu.
 * Użyj go na podstronach, które wymagają nowego stylu premium.
 */

:root {
  /* Kolory akcentów – złoto i jego jaśniejszy odcień */
  --accent: #d4af37;
  --accent2: #c8a165;
  /* Kolor podstawowy tekstu i wersja stonowana */
  --text: #e1d7c6;
  --muted: #b7a790;
  /* Tło strony i paneli */
  --bg: #0e0c0a;
  --panel: rgba(40, 35, 26, 0.78);
  --panel2: rgba(30, 25, 18, 0.58);
  /* Obrysy i cienie w kolorach złotych */
  --stroke: rgba(212, 175, 55, 0.35);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  --radius: 18px;
}

body {
  /* Use a custom collage image as the page background.  The dark base color ensures good
   * contrast where the image has lighter areas.  The `fixed` keyword keeps the
   * background stationary while the content scrolls. */
  background: var(--bg) url('../images/background-collage.png') center/cover no-repeat fixed;
  color: var(--text);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
}

/* Nagłówek strony */
.site-header {
  background: rgba(12, 10, 8, 0.9);
  border-bottom: 1px solid var(--stroke);
  backdrop-filter: blur(8px);
}
.site-header .brand-text {
  color: var(--accent);
  font-weight: 700;
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.5);
}
.site-header nav a {
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}
.site-header nav a:hover {
  background: var(--accent);
  color: #0e0c0a;
}

/* Styl kart (używane w generatorach i projektach) */
.card {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.15);
  padding: 24px;
  color: var(--text);
}
.card h2 {
  color: var(--accent);
  margin-top: 0;
  margin-bottom: 12px;
}
.card p {
  color: var(--muted);
  margin-bottom: 12px;
  font-size: 0.9rem;
}
.card .btn {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  color: #0e0c0a;
  font-weight: 700;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 12px;
  display: inline-block;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}
.card .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.4);
}

/* Stopka strony */
.site-footer {
  background: rgba(12, 10, 8, 0.9);
  color: var(--muted);
  padding: 30px 0;
  margin-top: auto;
}
.site-footer a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}
.site-footer a:hover {
  color: var(--accent2);
}

/* Ogólne przyciski */
.btn {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  color: #0e0c0a;
  font-weight: 700;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 12px;
  display: inline-block;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.4);
}

/* Synchronizacja zmiennych dla kalkulatora AI (ai-wycena) */
:root {
  /* Ustaw zmienne AI na odpowiadające wartości premium */
  --dd-accent: var(--accent);
  --dd-gold: var(--accent2);
  --dd-text: var(--text);
  --dd-muted: var(--muted);
  --dd-bg: var(--bg);
  --dd-card: var(--panel);
  --dd-card-2: var(--panel2);
  --dd-line: var(--stroke);
  --dd-shadow: var(--shadow);
}

/* Synchronizacja zmiennych dla diagnosty lasera */
:root {
  --bg: var(--bg);
  --bg-2: var(--panel2);
  --card: var(--panel);
  --card-strong: var(--panel2);
  --text: var(--text);
  --muted: var(--muted);
  --muted-2: var(--muted);
  --line: var(--stroke);
  --line-strong: var(--stroke);
  --accent: var(--accent);
  --accent-2: var(--accent2);
  --gold: var(--accent);
  --shadow: var(--shadow);
}

/* ---------------------------------------------------------------
 * Overrides for the updated home page (body.home-updated)
 * The default home page theme defined in style-updated.css uses neon colours
 * and a dark blue background. These rules override those variables and
 * component styles so that the home page uses the same golden palette as
 * other premium pages. Variables such as --bg-main, --card-bg and --accent
 * are reassigned to the premium equivalents defined above, and call-to-action
 * buttons are recoloured accordingly.
 */
body.home-updated {
  /* Map the home page variables to the premium palette */
  --bg-main: var(--bg);
  --bg-secondary: var(--panel);
  --card-bg: var(--panel);
  --accent: var(--accent);
  --accent2: var(--accent2);
  --wood: var(--accent);
  --text-primary: var(--text);
  --text-secondary: var(--muted);
  --border-col: var(--stroke);
}

/* Home page call-to-action buttons adopt the golden gradient and shadows */
body.home-updated .cta-btn {
  background: linear-gradient(90deg, var(--accent), var(--accent2)) !important;
  color: #0e0c0a !important;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3) !important;
}
body.home-updated .cta-btn:hover {
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.5) !important;
}

/* Secondary call-to-action on the home page uses a golden outline and subtle hover */
body.home-updated .cta-secondary {
  border: 1px solid var(--accent) !important;
  color: var(--accent) !important;
}
body.home-updated .cta-secondary:hover {
  background: rgba(212, 175, 55, 0.1) !important;
}

/* Offer cards on the home page use premium borders and button styles */
body.home-updated .offer-card {
  border-color: var(--stroke) !important;
}
body.home-updated .offer-card .card-btn {
  background: linear-gradient(90deg, var(--accent), var(--accent2)) !important;
  color: #0e0c0a !important;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4) !important;
}
body.home-updated .offer-card .card-btn:hover {
  box-shadow: 0 8px 18px rgba(212, 175, 55, 0.5) !important;
}

/* Navigation links on the home page should use the premium muted colour and gold hover */
body.home-updated .main-nav a {
  color: var(--muted) !important;
}
body.home-updated .main-nav a:hover {
  background: var(--accent) !important;
  color: #0e0c0a !important;
}
