/* =======================================
   skatsKal.css - Calendar page specific styles
   ======================================= */

/* This file contains ONLY calendar-specific styling.
   It assumes base.css, header.css, footer.css are already loaded. */

/* =======================================
   CALENDAR PAGE HEADER MODIFICATIONS
   ======================================= */

/* Compact header for calendar page */
.strip { 
  padding: 6px 0; 
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
}

.brand-logo {
  height: 78px; /* smaller than homepage */
  width: auto;
}

.topnav { 
  margin-left: 6px; 
}

.topnav ul {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.topnav a,
.topnav .current {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
}

/* Current page indicator (non-clickable) */
.topnav .current {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
  cursor: default;
}

/* Active page link (if using <a> with aria-current) */
.topnav a[aria-current="page"] {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}

.topnav a:hover {
  color: var(--accent);
}

/* =======================================
   CALENDAR PAGE LAYOUT
   ======================================= */

.kalendars { 
  padding: 18px 0 10px; 
}

.kalendars h2 {
  margin: 12px 0 14px;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: .01em;
}

/* Month headings */
#kal-months h3 {
  margin: 18px 0 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
}

/* =======================================
   CALENDAR CARD-STYLE LAYOUT
   ======================================= */

/* Reset the basic list styling */
.kal-long { 
  list-style: none; 
  margin: 0 0 22px; 
  padding: 0; 
}

/* Each date becomes a "card" */
.kal-long li {
  position: relative;
  display: block;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 18px 18px 18px calc(var(--date-col) + 22px);
  margin: 12px 0;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

/* Hover effects for calendar cards */
.kal-long li:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 0, 0, .10);
}

/* Left date badge */
.kal-date {
  position: absolute; 
  left: 0; 
  top: 0; 
  bottom: 0;
  width: var(--date-col);
  display: flex; 
  align-items: center; 
  justify-content: center;
  padding: 12px;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
  background:
    radial-gradient(120% 120% at 20% 20%, rgba(255,255,255,.9), rgba(255,255,255,.6) 60%, transparent 70%),
    linear-gradient(135deg, rgba(30,106,103,.10), rgba(30,106,103,.03));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
  border-right: 1px solid var(--border);
  border-top-left-radius: var(--radius);
  border-bottom-left-radius: var(--radius);
}

/* Entry lines on the right side of cards */
.kal-entry {
  display: grid;
  grid-template-columns: 5.5em 1fr;   /* time column | content */
  column-gap: 14px;
  align-items: start;
  margin: 6px 0;
  color: var(--ink);
  word-break: break-word;
}

.kal-entry .time {
  text-align: right;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;                 /* keep "1:30 PM" on one line */
  font-variant-numeric: tabular-nums;  /* consistent number width */
  font-feature-settings: "tnum" 1, "lnum" 1;
}

/* =======================================
   CALENDAR NOTES
   ======================================= */

.kal-notes { 
  margin: 8px 0 18px; 
  padding-left: 1.1rem; 
  color: var(--muted); 
}

.kal-notes li { 
  margin: 6px 0; 
}

/* =======================================
   MOBILE RESPONSIVE
   ======================================= */

@media (max-width: 600px) {
  /* Remove left date column on mobile */
  :root { 
    --date-col: 0px; 
  }
  
  .kal-long li { 
    padding: 14px; 
  }
  
  .kal-date {
    position: static; 
    width: auto; 
    margin: -6px 0 8px;
    border-right: none; 
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(30,106,103,.08), rgba(30,106,103,0));
  }
  
  /* Mobile navigation adjustments */
  .header-flex { 
    flex-wrap: wrap; 
    gap: 8px; 
  }
  
  .brand-logo { 
    height: 64px; 
  }
  
  .topnav { 
    margin-left: 0; 
  }
  
  .topnav ul { 
    flex-wrap: wrap; 
    gap: 10px 14px; 
  }
  
  /* Stack time and content on mobile */
  .kal-entry {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  
  .kal-entry .time {
    text-align: left;
    font-size: 0.9rem;
  }
}