/* ==========================================================================
   KROMPACHY.COM — STYLESHEET (LIGHT MODE)
   Colors:
     - Brand Red: #e4322a (Header & section underlines)
     - Header Text: #ffffff
     - Page Background: #f5f6f8
     - Card Surface: #ffffff
     - Body Text: #111827
     - Muted / Disclaimer Text: #6b7280
   ========================================================================== */

:root {
  --brand-red: #e4322a;
  --brand-red-dark: #c8271f;
  --bg-page: #f5f6f8;
  --bg-panel: #ffffff;
  --text-main: #111827;
  --text-muted: #6b7280;
  --text-white: #ffffff;
  --accent-yellow: #fde047;
  --border-line: #e5e7eb;
  --border-strong: #d1d5db;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --container-max: 1240px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  background-color: var(--bg-page);
  color: var(--text-main);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input {
  font-family: inherit;
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.highlight-yellow {
  color: var(--brand-red);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   HEADER (Prominent logo, #e4322a background)
   ========================================================================== */
.site-header {
  background-color: var(--brand-red);
  color: var(--text-white);
  padding: 0.45rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.header-left {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
}

.brand {
  display: block;
  flex-shrink: 0;
}

.brand-logo {
  height: 88px;
  width: auto;
  object-fit: contain;
}

.trial-status {
  display: block;
  width: 100%;
  background-color: var(--accent-yellow);
  color: #000000;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.1;
  padding: 0.25rem 0.35rem;
  text-align: center;
  white-space: nowrap;
}

.header-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0.1rem;
  text-align: right;
  color: var(--text-white);
}

.header-date {
  font-size: 0.85rem;
  font-weight: 500;
}

.header-clock {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   DISCLAIMER BAR
   ========================================================================== */
.disclaimer-bar {
  width: 100%;
  background-color: var(--accent-yellow);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  padding: 0.45rem 0;
}

.disclaimer-text {
  font-size: 0.84rem;
  font-weight: 600;
  color: #000000;
  text-align: center;
}

/* ==========================================================================
   MAIN CONTENT LAYOUT
   ========================================================================== */
.main-content {
  flex: 1;
  padding: 1.35rem 0 3.5rem;
}

.layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 1.75rem;
  align-items: stretch;
}

/* ==========================================================================
   LIVESTREAM SECTION
   ========================================================================== */
.stream-section {
  display: flex;
  flex-direction: column;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 0.65rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--brand-red);
  gap: 1rem;
  flex-wrap: wrap;
}

.section-title {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-main);
}

.stream-wrapper {
  background-color: var(--bg-panel);
  border: 1px solid var(--border-line);
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #000000;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background-color: #e5e7eb;
}

.placeholder-soon {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ==========================================================================
   SOCIAL MEDIA & CONTACT BOX (FULL WIDTH)
   ========================================================================== */
.social-widget {
  margin-top: 2rem;
  width: 100%;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.9rem;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 0.95rem;
  background-color: var(--bg-page);
  border: 1px solid var(--border-line);
  transition: border-color 0.15s ease, background-color 0.15s ease;
  min-width: 0;
}

.social-btn:hover {
  border-color: var(--brand-red);
  background-color: #ffffff;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-red);
  flex-shrink: 0;
}

.social-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}

.social-platform {
  font-size: 0.76rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.social-handle {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   SIDEBAR WIDGETS (WEATHER & MENINY)
   ========================================================================== */
.sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.15rem;
}

.widget {
  background-color: var(--bg-panel);
  border: 1px solid var(--border-line);
  padding: 1.05rem 1.2rem;
}

.weather-widget {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.widget-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
  border-bottom: 2px solid var(--brand-red);
}

.widget-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-main);
}

.widget-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Namedays (Today & Tomorrow) */
.nameday-list {
  display: flex;
  flex-direction: column;
}

.nameday-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border-line);
  font-size: 0.92rem;
}

.nameday-row:first-child {
  padding-top: 0.1rem;
}

.nameday-row:last-child {
  border-bottom: none;
  padding-bottom: 0.05rem;
}

.nameday-day {
  font-weight: 400;
  color: var(--text-muted);
}

.nameday-person {
  font-size: 1rem;
  font-weight: 600;
  text-align: right;
  color: var(--text-main);
}

.nameday-person.highlight-yellow {
  color: var(--brand-red);
}

/* Weather + 5-Day Forecast */
.weather-now {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-line);
}

.weather-now-main {
  display: flex;
  flex-direction: column;
}

.weather-temp {
  font-size: 2.05rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.weather-desc {
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: 0.25rem;
  color: var(--brand-red);
}

.weather-now-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.82rem;
  text-align: right;
  color: var(--text-muted);
}

.weather-now-meta strong {
  color: var(--text-main);
}

.forecast-section {
  padding-top: 0.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.forecast-heading {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.45rem;
  color: var(--text-muted);
}

.forecast-list {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.forecast-row {
  display: grid;
  grid-template-columns: 1.15fr 1.15fr auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border-line);
  font-size: 0.85rem;
}

.forecast-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.forecast-day {
  font-weight: 600;
  color: var(--text-main);
}

.forecast-day small {
  font-weight: 400;
  color: var(--text-muted);
}

.forecast-cond {
  font-size: 0.83rem;
  color: var(--text-muted);
}

.forecast-temps {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--text-main);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 980px) {
  .layout-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    align-items: start;
  }

  .social-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 1rem;
  }

  .site-header {
    padding: 0.65rem 0;
  }

  .header-inner {
    justify-content: center;
    text-align: center;
  }

  .header-left {
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0.35rem;
    width: auto;
  }

  .brand-logo {
    height: 76px;
    margin: 0 auto;
  }

  .trial-status {
    width: 100%;
    font-size: 0.68rem;
    padding: 0.25rem 0.25rem;
  }

  .header-meta {
    display: none;
  }

  .disclaimer-bar {
    padding: 0.4rem 0;
  }

  .disclaimer-text {
    font-size: 0.78rem;
  }

  .main-content {
    padding: 1rem 0 2.5rem;
  }

  .layout-grid {
    gap: 1.5rem;
  }

  .sidebar {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  .section-title {
    font-size: 1.15rem;
  }

  .video-placeholder {
    padding: 1rem;
  }

  .widget {
    padding: 1rem;
  }

  .weather-temp {
    font-size: 1.95rem;
  }

  .forecast-row {
    grid-template-columns: 1.2fr 1fr auto;
    font-size: 0.83rem;
  }

  .social-widget {
    margin-top: 1.5rem;
  }

  .social-grid {
    grid-template-columns: 1fr;
  }
}
