@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

@font-face {
    font-family: 'Biro Script';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('https://hakuna.org/wp-content/themes/compi/assets/fonts/biro-script-plus/BiroScriptPlus.woff2') format('woff2');
}

:root {
    --hk-blue: #0098cd;
    --hk-blue-deep: #007ba6;
    --hk-blue-soft: #e8f7fd;
    --hk-ink: #10212b;
    --hk-muted: #5f7480;
    --hk-border: rgba(16, 33, 43, 0.09);
    --hk-paper: #ffffff;
    --hk-wash: #f8fcfd;
    --hk-sand: #fff7ef;
    --hk-success: #2ba36b;
    --hk-warning: #f2b94b;
    --hk-shadow: 0 20px 60px rgba(0, 52, 73, 0.08);
    --hk-radius-xl: 32px;
    --hk-radius-lg: 24px;
    --hk-radius-md: 18px;
    --hk-radius-sm: 14px;
}

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

html,
body {
    margin: 0;
    padding: 0;
}

body.site-shell {
    min-height: 100vh;
    font-family: 'Montserrat', sans-serif;
    color: var(--hk-ink);
    background:
        radial-gradient(circle at top left, rgba(0, 152, 205, 0.12), transparent 28%),
        radial-gradient(circle at top right, rgba(0, 152, 205, 0.08), transparent 24%),
        linear-gradient(180deg, #f9fdff 0%, #eef8fb 100%);
}

a {
    color: var(--hk-blue);
    text-decoration: none;
}

a:hover {
    color: var(--hk-blue-deep);
}

.shell-width {
    width: min(1240px, calc(100vw - 56px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(16, 33, 43, 0.05);
}

.site-header .navbar {
    padding: 18px 0;
}

.navbar-toggler {
    border: 0;
    padding: 0;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.brand-kicker,
.brand-title {
    display: block;
    line-height: 1;
}

.brand-kicker {
    font-family: 'Biro Script', cursive;
    font-size: 1.15rem;
    color: var(--hk-blue);
    transform: rotate(-4deg);
    margin-left: 6px;
}

.brand-title {
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--hk-ink);
}

.navbar-nav {
    gap: 0.35rem;
}

.nav-link {
    color: var(--hk-ink);
    font-weight: 600;
    border-radius: 999px;
    padding: 0.7rem 1rem !important;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--hk-blue);
    background: rgba(0, 152, 205, 0.08);
}

.nav-cta {
    color: var(--hk-paper) !important;
    background: var(--hk-blue);
    box-shadow: 0 12px 24px rgba(0, 152, 205, 0.24);
}

.nav-cta:hover,
.nav-cta:focus {
    background: var(--hk-blue-deep);
}

.site-main {
    padding-top: 56px;
    padding-bottom: 72px;
}

.toast {
    border-radius: 18px;
    box-shadow: var(--hk-shadow);
}

.hero-panel,
.calendar-shell,
.auth-shell,
.admin-panel {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--hk-border);
    box-shadow: var(--hk-shadow);
}

.hero-panel {
    position: relative;
    overflow: hidden;
    padding: 54px 54px 46px;
    border-radius: var(--hk-radius-xl);
    background:
        linear-gradient(135deg, rgba(0, 152, 205, 0.1), rgba(255, 255, 255, 0.96) 56%),
        var(--hk-paper);
}

.hero-panel::after {
    content: '';
    position: absolute;
    inset: auto -40px -50px auto;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 152, 205, 0.18), transparent 65%);
    pointer-events: none;
}

.hero-script,
.footer-script,
.section-script {
    font-family: 'Biro Script', cursive;
    color: var(--hk-blue);
    font-size: clamp(1.35rem, 3vw, 2rem);
    display: inline-block;
    transform: rotate(-4deg);
}

.hero-title,
.auth-title {
    font-size: clamp(2.4rem, 6vw, 4.6rem);
    line-height: 0.92;
    letter-spacing: -0.06em;
    font-weight: 800;
    margin: 8px 0 18px;
}

.hero-copy,
.auth-copy,
.eyebrow-copy {
    max-width: 56ch;
    color: var(--hk-muted);
    font-size: 1.02rem;
    line-height: 1.7;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-pill,
.info-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.9rem 1.1rem;
    border-radius: 999px;
    background: var(--hk-paper);
    border: 1px solid var(--hk-border);
    color: var(--hk-ink);
    font-weight: 600;
}

.hero-actions,
.calendar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.agenda-toolbar {
    margin-top: 26px;
    margin-bottom: 34px;
}

.agenda-toolbar__card {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--hk-border);
    border-radius: 26px;
    padding: 22px 24px;
    box-shadow: var(--hk-shadow);
    backdrop-filter: blur(14px);
}

.agenda-toolbar__top,
.agenda-toolbar__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.agenda-toolbar__bottom {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(16, 33, 43, 0.07);
}

.agenda-toolbar__title {
    margin: 6px 0 0;
    font-size: clamp(1.4rem, 2.4vw, 2.2rem);
    line-height: 1;
    letter-spacing: -0.04em;
    font-weight: 800;
}

.agenda-toolbar__chips,
.agenda-toolbar__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.legend-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.72rem 0.9rem;
    border-radius: 999px;
    background: rgba(0, 152, 205, 0.06);
    color: var(--hk-ink);
    font-size: 0.86rem;
    font-weight: 700;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.legend-dot--free {
    background: var(--hk-blue);
}

.legend-dot--fixed {
    background: var(--hk-success);
}

.legend-dot--backup {
    background: #64748b;
}

.btn {
    border-radius: 999px;
    font-weight: 700;
    padding: 0.82rem 1.3rem;
    border-width: 0;
}

.btn-primary,
.btn-success,
.btn-info,
.btn-warning,
.btn-danger {
    box-shadow: 0 14px 28px rgba(16, 33, 43, 0.1);
}

.btn-primary {
    background: var(--hk-blue);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--hk-blue-deep);
}

.btn-success {
    background: var(--hk-success);
}

.btn-success:hover,
.btn-success:focus {
    background: #238a5a;
}

.btn-outline-primary,
.btn-outline-success,
.btn-outline-secondary {
    border: 1px solid var(--hk-border);
    color: var(--hk-ink);
    background: var(--hk-paper);
}

.btn-outline-primary:hover,
.btn-outline-success:hover,
.btn-outline-secondary:hover {
    color: var(--hk-ink);
    background: var(--hk-blue-soft);
    border-color: rgba(0, 152, 205, 0.18);
}

.calendar-shell {
    margin-top: 0;
    overflow: hidden;
    border-radius: var(--hk-radius-xl);
}

.calendar-shell__header {
    padding: 30px 34px 0;
}

.calendar-grid {
    overflow-x: auto;
    padding: 24px 24px 28px;
}

.table {
    min-width: 1020px;
    margin: 0;
    --bs-table-bg: transparent;
}

.table thead th {
    background: linear-gradient(180deg, #11242d 0%, #153442 100%);
    color: var(--hk-paper);
    border: 0;
    padding: 20px 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
}

.table thead .day-name {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: normal;
    margin-top: 2px;
}

.table tbody th {
    background: rgba(0, 152, 205, 0.06);
    border-color: rgba(16, 33, 43, 0.04);
    color: var(--hk-ink);
    width: 92px;
    min-width: 92px;
    font-size: 0.95rem;
    font-weight: 700;
}

.table tbody td {
    padding: 18px 16px;
    border-color: rgba(16, 33, 43, 0.04);
    background: rgba(255, 255, 255, 0.68);
}

.slot-card {
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 249, 252, 0.96));
    border: 1px solid rgba(0, 152, 205, 0.09);
    border-radius: 22px;
    box-shadow: 0 12px 22px rgba(14, 67, 90, 0.06);
}

.slot-card.is-complete {
    opacity: 0.72;
}

.slot-card .card-body {
    padding: 18px;
}

.slot-time {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100%;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #09222d, #12384a);
    color: var(--hk-paper);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.slot-progress {
    margin-top: 14px;
    height: 12px;
    border-radius: 999px;
    background: rgba(0, 152, 205, 0.1);
    overflow: hidden;
}

.slot-progress .progress-bar {
    background: linear-gradient(90deg, var(--hk-blue), #49bfe8);
    font-size: 0.75rem;
    font-weight: 700;
}

.slot-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.slot-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: var(--hk-wash);
    border: 1px solid rgba(0, 152, 205, 0.08);
    font-size: 0.9rem;
}

.slot-list li.empty {
    color: var(--hk-muted);
    font-style: italic;
}

.slot-person {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.badge {
    border-radius: 999px;
    padding: 0.45rem 0.72rem;
    font-weight: 700;
}

.actions {
    display: grid;
    gap: 8px;
    margin-top: 20px;
}

.actions .btn,
.actions .badge {
    width: 100%;
    justify-content: center;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    margin: 6px 0 0;
}

.auth-shell {
    max-width: 560px;
    margin: 0 auto;
    padding: 42px 36px;
    border-radius: var(--hk-radius-xl);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(233, 247, 253, 0.9)),
        var(--hk-paper);
}

.auth-title {
    margin-bottom: 10px;
}

.auth-form {
    margin-top: 28px;
    display: grid;
    gap: 16px;
}

.form-label {
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--hk-ink);
}

.form-control {
    border-radius: 18px;
    border: 1px solid rgba(16, 33, 43, 0.1);
    min-height: 54px;
    padding: 0.95rem 1rem;
    background: rgba(255, 255, 255, 0.9);
}

.form-control:focus {
    border-color: rgba(0, 152, 205, 0.42);
    box-shadow: 0 0 0 0.25rem rgba(0, 152, 205, 0.12);
}

.auth-footer {
    margin-top: 22px;
    color: var(--hk-muted);
    text-align: center;
}

.auth-footer p {
    margin-bottom: 6px;
}

.admin-panel {
    border-radius: var(--hk-radius-xl);
    padding: 28px;
    margin-top: 0;
    margin-bottom: 32px;
}

.site-footer {
    border-top: 1px solid rgba(16, 33, 43, 0.06);
    background: rgba(255, 255, 255, 0.74);
    backdrop-filter: blur(12px);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 24px 0 34px;
}

.footer-copy,
.footer-meta {
    margin: 0;
    color: var(--hk-muted);
    font-size: 0.92rem;
}

.modal-content {
    border: 1px solid var(--hk-border);
    border-radius: 24px;
    box-shadow: var(--hk-shadow);
}

.modal-header,
.modal-footer {
    border: 0;
    padding: 20px 24px;
}

.modal-body {
    padding: 0 24px 8px;
}

@media (max-width: 991px) {
    .navbar-collapse {
        padding-top: 16px;
    }

    .nav-link {
        display: inline-flex;
    }
}

@media (max-width: 768px) {
    .site-main {
        padding-top: 28px;
    }

    .hero-panel,
    .auth-shell,
    .admin-panel {
        padding: 28px 20px;
        border-radius: 24px;
    }

    .agenda-toolbar__top,
    .agenda-toolbar__bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .agenda-toolbar__card,
    .calendar-shell__header,
    .calendar-grid {
        padding-left: 16px;
        padding-right: 16px;
    }

    .section-head,
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .table {
        min-width: 820px;
    }

    .table thead th,
    .table tbody td,
    .table tbody th {
        padding: 12px 10px;
    }
}
