/* ============================================
   schedule.mehediwp.com — Light Mode, Fresh
   ============================================ */

:root {
    --bg: #f5f7fa;
    --surface: #ffffff;
    --text-primary: #1a1a2e;
    --text-secondary: #6b7280;
    --accent: #3b82f6;
    --accent-light: #eff6ff;
    --border: #e5e7eb;
    --success: #10b981;
    --success-bg: #ecfdf5;
    --error: #ef4444;
    --error-bg: #fef2f2;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.1);
    --radius: 16px;
    --radius-sm: 10px;
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 680px;
    margin: 0 auto;
    padding: 32px 20px 48px;
}

/* ── Section Titles ── */
.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

/* ── Live Clocks ── */
.clocks-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 32px;
}

.clock-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.clock-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.clock-flag {
    font-size: 2rem;
    line-height: 1;
}

.clock-info {
    display: flex;
    flex-direction: column;
}

.clock-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.clock-time {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.clock-date {
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* ── Today Card ── */
.today-section {
    margin-bottom: 32px;
}

.today-card {
    background: var(--surface);
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-md), 0 0 0 4px var(--accent-light);
    position: relative;
    overflow: hidden;
}

.today-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), #8b5cf6);
}

.today-date {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.today-times {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.today-time-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.today-time-row .tz-label {
    text-transform: uppercase;
}

.today-time-row .tz-value {
    font-weight: 600;
}

/* BD row — large and prominent */
.today-time-row.bd-row .tz-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    min-width: 30px;
}

.today-time-row.bd-row .tz-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

/* TOR row — muted ash */
.today-time-row.tor-row .tz-label {
    font-size: 0.68rem;
    font-weight: 500;
    color: #b0b5bf;
    min-width: 30px;
}

.today-time-row.tor-row .tz-value {
    font-size: 0.85rem;
    font-weight: 500;
    color: #b0b5bf;
}

.today-weekend {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    padding: 12px 0;
}

.today-weekend .weekend-emoji {
    font-size: 1.6rem;
    display: block;
    margin-bottom: 6px;
}

.today-loading {
    color: var(--text-secondary);
    text-align: center;
    padding: 8px 0;
}

/* ── Schedule List ── */
.upcoming-section {
    margin-bottom: 40px;
}

.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.schedule-row {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.15s ease;
}

.schedule-row:hover {
    box-shadow: var(--shadow-md);
}

.schedule-row.weekend {
    background: #fafafa;
    border-style: dashed;
    border-color: #ddd;
}

.schedule-row.past {
    opacity: 0.45;
}

.sched-date {
    display: flex;
    flex-direction: column;
    min-width: 100px;
}

.sched-date-main {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text-primary);
}

.sched-date-day {
    font-size: 0.72rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.sched-times {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.sched-time-bd {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-primary);
}

.sched-time-tor {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.sched-weekend-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-left: auto;
}

/* ── Submit Section ── */
.submit-section {
    margin-bottom: 32px;
}

.submit-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    color: var(--text-primary);
    background: var(--surface);
    resize: vertical;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    line-height: 1.6;
}

textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

textarea::placeholder {
    color: #c0c5ce;
}

.submit-btn {
    margin-top: 12px;
    width: 100%;
    padding: 14px 24px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s ease, transform 0.1s ease;
}

.submit-btn:hover {
    background: #2563eb;
}

.submit-btn:active {
    transform: scale(0.98);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.submit-feedback {
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 500;
}

.submit-feedback.success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid #a7f3d0;
}

.submit-feedback.error {
    background: var(--error-bg);
    color: var(--error);
    border: 1px solid #fca5a5;
}

.hidden {
    display: none;
}

/* ── Footer ── */
.footer {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.footer p {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

/* ── Responsive ── */
@media (max-width: 520px) {
    .clocks-section {
        grid-template-columns: 1fr;
    }

    .clock-time {
        font-size: 1.35rem;
    }

    .schedule-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .sched-times {
        align-items: flex-start;
    }

    .sched-weekend-label {
        margin-left: 0;
    }
}
