/* =============================================================
   LEKARZE PAGE — Specjalistyczna Przychodnia Lekarska Fundacji AK
   ============================================================= */

/* ---- Page Hero ---- */
.page-hero {
  position: relative;
  background: linear-gradient(135deg, rgba(66,18,20,0.95) 0%, rgba(92,26,27,0.92) 60%, rgba(45,62,44,0.88) 100%);
  color: var(--paper-light);
  padding: 5rem 2rem 4rem;
  text-align: center;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 60px, rgba(241,233,214,0.025) 60px 61px),
    radial-gradient(ellipse at 90% 10%, rgba(168,100,42,0.22) 0%, transparent 55%),
    radial-gradient(ellipse at 5% 95%, rgba(45,62,44,0.35) 0%, transparent 55%);
}
.page-hero-inner {
  position: relative; z-index: 2;
  max-width: 700px; margin: 0 auto;
  animation: rise 0.8s var(--ease-out) forwards;
  opacity: 0; transform: translateY(30px);
}
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  font-weight: 700;
  margin: 0.75rem 0 1rem;
}
.page-hero .lead {
  font-size: 1.15rem;
  color: rgba(241,233,214,0.85);
  line-height: 1.6;
}

/* ---- Notice Box ---- */
.doctors-notice {
  padding: 0 2rem;
  margin-top: -2rem;
  position: relative;
  z-index: 3;
}
.notice-box {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: #fff3cd;
  border: 2px solid #e6c200;
  border-left: 5px solid #e6c200;
  box-shadow: 0 4px 20px rgba(66,18,20,0.1);
}
.notice-box svg {
  width: 28px; height: 28px;
  fill: #b38f00;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.notice-box p {
  font-size: 0.95rem;
  color: #664d00;
  line-height: 1.5;
  margin: 0 0 0.3rem;
}
.notice-box p:last-child {
  margin-bottom: 0;
}
.notice-box a {
  color: #664d00;
  text-decoration: underline;
}

/* ---- Doctors Section ---- */
.doctors-section {
  padding: 3.5rem 2rem 5rem;
  background: var(--paper);
}
.doctors-section .container {
  max-width: 1100px;
}

/* ---- Doctors Table ---- */
.doctors-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.doctors-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.doctors-table thead {
  background: var(--bordeaux-deep);
  color: var(--paper-light);
}
.doctors-table th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.doctors-table th:first-child {
  min-width: 160px;
}
.doctors-table td {
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-soft);
  vertical-align: top;
}
.doctors-table tbody tr:hover {
  background: rgba(168,100,42,0.04);
}

/* Specialty group header rows */
.spec-header td {
  background: var(--paper-dark);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--bordeaux-deep);
  padding: 0.85rem 1.25rem;
  border-bottom: 2px solid var(--copper);
  border-top: 1px solid var(--rule);
  letter-spacing: 0.02em;
}
.spec-header td::before {
  content: "✦ ";
  color: var(--copper);
  font-size: 0.8rem;
}

/* Scroll margin for anchor links */
tr[id] {
  scroll-margin-top: 130px;
}

/* Doctor name styling */
.doctors-table td:nth-child(2) {
  font-weight: 500;
  color: var(--ink);
}

/* Hours column styling */
.doctors-table td:nth-child(4) {
  font-family: var(--serif);
  font-style: italic;
  color: var(--bordeaux);
  white-space: nowrap;
}

/* Alternating rows */
.doctors-table tbody tr:nth-child(even):not(.spec-header) {
  background: rgba(247,241,225,0.5);
}
.doctors-table tbody tr:nth-child(even):not(.spec-header):hover {
  background: rgba(168,100,42,0.06);
}

/* Updated notice */
.table-updated {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: rgba(180,40,40,0.08);
  border: 1px solid rgba(180,40,40,0.2);
  border-left: 3px solid var(--bordeaux);
  font-size: 0.88rem;
  color: var(--bordeaux-deep);
  font-style: italic;
}

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 900px) {
  .page-hero {
    padding: 3.5rem 1.5rem 3rem;
  }
  .doctors-notice {
    padding: 0 1.5rem;
  }
  .notice-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .doctors-section {
    padding: 2.5rem 1rem 3.5rem;
  }

  /* Mobile: cards layout */
  .doctors-table thead {
    display: none;
  }
  .doctors-table,
  .doctors-table tbody,
  .doctors-table tr:not(.spec-header),
  .doctors-table td {
    display: block;
    width: 100%;
  }
  .doctors-table tr:not(.spec-header) {
    margin-bottom: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--paper-light);
    border: 1px solid var(--rule);
    border-left: 3px solid var(--copper);
  }
  .doctors-table td {
    padding: 0.3rem 0;
    border-bottom: none;
    text-align: left;
  }
  .doctors-table td::before {
    content: attr(data-label) ": ";
    font-weight: 600;
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }
  .doctors-table td:nth-child(4) {
    white-space: normal;
  }

  /* Spec headers in mobile */
  .spec-header {
    display: block;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
  }
  .spec-header td {
    display: block;
  }
}
