/* ================================================================
   AHNAF.KZ — PRAYER TIMES PAGE
   public/assets/site/css/prayertimes.css
================================================================ */

.pt-page { padding: 36px 0 64px; }

.pt-wrap {
    max-width: 800px;
    margin: 0 auto;
}

/* ── Шапка ───────────────────────────────────────────────────── */
.pt-head {
    display: flex; align-items: flex-start;
    justify-content: space-between; gap: 16px;
    margin-bottom: 20px; flex-wrap: wrap;
}
.pt-eyebrow {
    font-size: 10.5px; font-weight: 600;
    letter-spacing: .12em; text-transform: uppercase;
    color: var(--teal); display: block; margin-bottom: 5px;
}
.pt-title {
    font-family: var(--font-display);
    font-size: clamp(20px, 3.5vw, 30px);
    font-weight: 400; color: var(--ink); line-height: 1.15;
}

/* ── Кнопка PDF ──────────────────────────────────────────────── */
.pt-pdf-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    margin-top: 16px;
    background: var(--white);
    border: 1.5px solid var(--teal-light);
    border-radius: var(--r-lg);
    font-size: 14px;
    font-weight: 600;
    color: var(--teal);
    cursor: pointer;
    font-family: var(--font-body);
    box-shadow: var(--sh-card);
    transition: background var(--tr), border-color var(--tr),
                box-shadow var(--tr), transform var(--tr);
}
.pt-pdf-btn:hover {
    background: var(--mint);
    border-color: var(--teal);
    box-shadow: var(--sh-sm);
    transform: translateY(-1px);
}
.pt-pdf-btn:active   { transform: translateY(0); }
.pt-pdf-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.pt-pdf-btn svg { flex-shrink: 0; }

/* ── Обёртка таблицы ─────────────────────────────────────────── */
.pt-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ── Таблица ─────────────────────────────────────────────────── */
.pt-table {
    width: 100%;
    min-width: 380px;
    border-collapse: separate;
    border-spacing: 0 3px;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    table-layout: fixed;
}

/* ── Заголовок ─────────────────────────────────────────────────── */
.pt-head-row th { background: var(--teal); }

.pt-th {
    color: #fff;
    padding: 10px 6px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    white-space: nowrap;
}
.pt-th--date {
    width: 80px;
    text-align: center;
    border-radius: 8px 0 0 8px;
}
.pt-th--dim { color: rgba(255,255,255,.65); font-weight: 400; }
.pt-head-row th:last-child { border-radius: 0 8px 8px 0; }

/* ── Ячейки строк ──────────────────────────────────────────────── */
.pt-td {
    padding: 9px 6px;
    text-align: center;
    vertical-align: middle;
    background: #fff;
    border-top: 1px solid var(--cream-2);
    border-bottom: 1px solid var(--cream-2);
    line-height: 1;
}
.pt-td:first-child {
    border-left: 1px solid var(--cream-2);
    border-radius: 8px 0 0 8px;
}
.pt-td:last-child {
    border-right: 1px solid var(--cream-2);
    border-radius: 0 8px 8px 0;
}

/* ── Ячейка дня: число + полное название дня недели ───────────── */
.pt-td--date {
    padding: 6px 4px;
    text-align: center;
    vertical-align: middle;
    width: 80px;
}
.pt-day-num {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1;
}
.pt-day-weekday {
    display: block;
    font-size: 9px;
    font-weight: 400;
    color: var(--muted);
    line-height: 1.4;
    margin-top: 2px;
    letter-spacing: .01em;
}

/* Слабый столбец (Күн шығу) */
.pt-td--dim { color: var(--muted); font-size: 13px; }

/* ── Состояния строк ───────────────────────────────────────────── */

/* Прошедшие */
.pt-row--past .pt-td {
    background: var(--bg);
    color: #aaa;
    border-color: transparent;
}
.pt-row--past .pt-td:first-child  { border-left-color: transparent; }
.pt-row--past .pt-td:last-child   { border-right-color: transparent; }
.pt-row--past .pt-day-num         { color: #bbb; }
.pt-row--past .pt-day-weekday     { color: #ccc; }

/* Жұма */
.pt-row--friday .pt-td            { background: #f2fbf8; border-color: #d4f0e8; }
.pt-row--friday .pt-td:first-child { border-left-color: #d4f0e8; }
.pt-row--friday .pt-td:last-child  { border-right-color: #d4f0e8; }

/* Сегодня */
.pt-row--today .pt-td {
    background: var(--teal) !important;
    color: #fff !important;
    border-color: var(--teal) !important;
    font-weight: 600;
}
.pt-row--today .pt-td--dim    { color: rgba(255,255,255,.7) !important; font-weight: 400; }
.pt-row--today .pt-day-num    { color: #fff !important; }
.pt-row--today .pt-day-weekday { color: rgba(255,255,255,.75) !important; }

/* ── Пусто / сноска ─────────────────────────────────────────── */
.pt-empty {
    text-align: center; padding: 48px 24px;
    color: var(--muted); font-size: 15px;
}
.pt-footnote {
    margin-top: 12px;
    font-size: 11.5px; color: var(--muted);
    text-align: center; line-height: 1.5;
}

/* ── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 540px) {
    .pt-table      { font-size: 12px; min-width: 360px; }
    .pt-th         { padding: 9px 3px; font-size: 9.5px; }
    .pt-th--date   { width: 66px; }
    .pt-td         { padding: 8px 3px; }
    .pt-td--date   { width: 66px; padding: 5px 3px; }
    .pt-day-num    { font-size: 13px; }
    .pt-day-weekday { font-size: 8px; }
    .pt-pdf-btn    { font-size: 13px; padding: 12px 16px; }
}