:root {
    --bg: #f7efe3;
    --card: rgba(255, 255, 255, 0.82);
    --text: #2d241b;
    --muted: #7a6756;
    --primary: #8b5e34;
    --primary-dark: #5f3e22;
    --border: rgba(90, 62, 38, 0.14);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.9), transparent 32rem),
        linear-gradient(135deg, #f7efe3, #ead8bd);
}

.app-shell {
    width: min(100%, 960px);
    margin: 0 auto;
    padding: 18px;
}

.hero-card,
.psalm-card {
    border: 1px solid var(--border);
    background: var(--card);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 50px rgba(70, 45, 20, 0.12);
    border-radius: 28px;
}

.hero-card {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 18px;
    margin-bottom: 14px;
}

.date-box {
    width: 86px;
    min-width: 86px;
    height: 96px;
    border-radius: 24px;
    background: linear-gradient(160deg, #8b5e34, #c7955b);
    color: white;
    display: grid;
    place-items: center;
    box-shadow: 0 14px 30px rgba(95, 62, 34, 0.25);
}

.date-day {
    font-size: 2.45rem;
    font-weight: 800;
    line-height: 1;
}

.date-month {
    margin-top: -14px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.eyebrow {
    margin: 0 0 4px;
    color: var(--primary);
    font-weight: 700;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

h1 {
    margin: 0;
    font-size: clamp(1.7rem, 7vw, 3rem);
    line-height: 1.05;
    font-weight: 850;
}

.weekday {
    margin: 8px 0 0;
    color: var(--muted);
}

.day-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;

    width: fit-content;
    margin: 0 auto 14px;
    padding: 8px;

    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 28px rgba(70, 45, 20, 0.14);
    border: 1px solid var(--border);
}

.day-arrow {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(160deg, #8b5e34, #c7955b);
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    font-weight: 800;
    display: grid;
    place-items: center;
}

.day-arrow:active {
    transform: scale(.94);
}

.today-pill {
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    background: #fff;
    color: var(--primary-dark);
    font-size: .9rem;
    font-weight: 850;
    box-shadow: inset 0 0 0 1px rgba(139, 94, 52, 0.16);
}

.psalm-card {
    padding: 24px 20px;
    transition: opacity .2s ease, transform .2s ease;
}

.psalm-card.is-changing {
    opacity: .35;
    transform: scale(.985);
}

.loading-box,
.empty-box {
    color: var(--muted);
    text-align: center;
    padding: 32px 12px;
}

.reader-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(139, 94, 52, 0.1);
    color: var(--primary-dark);
    font-size: .82rem;
    font-weight: 800;
}

.psalm-message {
    font-size: clamp(1.15rem, 4.6vw, 1.55rem);
    line-height: 1.65;
}

.actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 24px;
}

.btn-action {
    border-radius: 999px;
    padding: 12px 16px;
    font-weight: 700;
}

.btn-primary {
    --bs-btn-bg: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-bg: var(--primary-dark);
    --bs-btn-hover-border-color: var(--primary-dark);
}

@media (min-width: 768px) {
    .app-shell {
        padding: 36px 28px;
    }

    .hero-card {
        padding: 26px;
    }

    .psalm-card {
        padding: 38px;
    }

    .date-box {
        width: 110px;
        min-width: 110px;
        height: 120px;
    }

    .date-day {
        font-size: 3.1rem;
    }
}

@media (min-width: 1024px) {
    .app-shell {
        padding-top: 56px;
    }
}

@media (max-width: 768px) {
    .hero-card {
        padding: 14px;
        margin-bottom: 10px;
        gap: 12px;
    }

    .date-box {
        width: 72px;
        min-width: 72px;
        height: 82px;
        border-radius: 20px;
    }

    .date-day {
        font-size: 2rem;
    }

    .date-month {
        font-size: .72rem;
    }

    h1 {
        font-size: 1.55rem;
        line-height: 1.1;
    }

    .weekday {
        margin-top: 4px;
        font-size: .95rem;
    }

    .day-nav {
        margin-bottom: 10px;
        padding: 7px;
    }

    .day-arrow {
        width: 42px;
        height: 42px;
        font-size: 1.9rem;
    }

    .today-pill {
        padding: 10px 16px;
        font-size: .95rem;
    }

    .psalm-card {
        padding: 18px 16px;
    }

    .psalm-message {
        font-size: 1.22rem;
        line-height: 1.55;
    }
}

@media (max-width: 520px) {
    .actions {
        grid-template-columns: 1fr;
    }
}

.verse-quote {
    display: block;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.verse-reference {
    display: block;
    margin-bottom: 14px;
    font-style: italic;
    font-weight: 700;
    color: var(--primary);
}

/* =========================
   SKELETON LOADING
========================= */

.skeleton-text,
.skeleton-line,
.skeleton-button {
    position: relative;
    overflow: hidden;
    color: transparent !important;

    background: linear-gradient(
        90deg,
        rgba(255,255,255,0.18),
        rgba(255,255,255,0.42),
        rgba(255,255,255,0.18)
    );

    background-size: 220% 100%;
    animation: skeletonLoading 1.25s ease-in-out infinite;

    user-select: none;
}

/* Horná časť */

.skeleton-day {
    width: 46px;
    height: 42px;
    border-radius: 14px;
}

.skeleton-month {
    width: 42px;
    height: 12px;
    border-radius: 999px;
    margin-top: 6px;
}

.skeleton-weekday {
    display: block;
    width: 220px;
    height: 18px;
    border-radius: 999px;
    margin-top: 10px;
}

/* Hero skeleton */

.skeleton-eyebrow {
    display: block;
    width: 140px;
    height: 12px;
    border-radius: 999px;
    margin-bottom: 10px;
}

.skeleton-heading {
    display: block;
    width: 280px;
    height: 44px;
    border-radius: 18px;
    margin: 0;
}

/* Psalm skeleton */

.skeleton-wrap {
    padding: 4px 0;
}

.skeleton-line {
    height: 18px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.skeleton-title {
    width: 82%;
    height: 28px;
    margin-bottom: 18px;
}

.skeleton-ref {
    width: 42%;
    height: 16px;
    margin-bottom: 22px;
}

.skeleton-short {
    width: 68%;
}

.skeleton-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 28px;
}

.skeleton-button {
    height: 48px;
    border-radius: 999px;
}

/* Animácia */

@keyframes skeletonLoading {
    0% {
        background-position: 120% 0;
    }

    100% {
        background-position: -120% 0;
    }
}

/* Fade-in obsahu */

#psalmContent {
    animation: fadeContent .35s ease;
}

@keyframes fadeContent {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile optimalizácia */

@media (max-width: 768px) {

    .skeleton-day {
        width: 34px;
        height: 34px;
    }

    .skeleton-weekday {
        width: 160px;
    }
	
	.skeleton-heading {
    width: 220px;
    height: 36px;
	}

.skeleton-eyebrow {
    width: 120px;
	}
}

@media (max-width: 520px) {

    .skeleton-actions {
        grid-template-columns: 1fr;
    }
}

/* =========================
   APP INITIAL LOADING
========================= */

body.app-loading .day-nav {
    opacity: .55;
    pointer-events: none;
}

body.app-loading .day-arrow,
body.app-loading .today-pill {
    color: transparent !important;

    background: linear-gradient(
        90deg,
        rgba(255,255,255,0.18),
        rgba(255,255,255,0.42),
        rgba(255,255,255,0.18)
    );

    background-size: 220% 100%;
    animation: skeletonLoading 1.25s ease-in-out infinite;

    border: 0;
}

/* =========================
   DOBREZACNI BRANDING
========================= */

.brand-top {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 14px;

    padding: 8px 14px;

    border-radius: 999px;

    background: rgba(255,255,255,.58);

    backdrop-filter: blur(10px);

    border: 1px solid rgba(139, 94, 52, 0.10);

    color: var(--primary-dark);

    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .03em;

    box-shadow:
        0 8px 24px rgba(95, 62, 34, 0.08),
        inset 0 1px 0 rgba(255,255,255,.55);
}

.brand-dot {
    width: 10px;
    height: 10px;

    border-radius: 50%;

    background:
        radial-gradient(circle at 30% 30%, #ffd89a, #c7955b);

    box-shadow:
        0 0 12px rgba(199,149,91,.65);
}

.main-title {
    background:
        linear-gradient(
            135deg,
            #5f3e22,
            #8b5e34,
            #c7955b
        );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    background-clip: text;

    letter-spacing: -0.03em;

    text-wrap: balance;
}

.hero-card {
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: '';

    position: absolute;

    inset: 0;

    background:
        radial-gradient(
            circle at top right,
            rgba(255,255,255,.55),
            transparent 42%
        );

    pointer-events: none;
}

.psalm-card {
    position: relative;
    overflow: hidden;
}

.psalm-card::before {
    content: '';

    position: absolute;

    top: -120px;
    right: -120px;

    width: 240px;
    height: 240px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(199,149,91,.10),
            transparent 70%
        );

    pointer-events: none;
}

.btn-action {
    transition:
        transform .16s ease,
        box-shadow .16s ease;
}

.btn-action:hover {
    transform: translateY(-2px);

    box-shadow:
        0 10px 24px rgba(95,62,34,.12);
}

.btn-action:active {
    transform: scale(.97);
}

/* =========================
   MOBILE PREMIUM UI
========================= */

@media (max-width: 768px) {

    body {
        background:
            radial-gradient(circle at top left, rgba(255,255,255,0.95), transparent 20rem),
            linear-gradient(180deg, #f9f1e5, #ead8bd);
    }

    .app-shell {
        padding: 14px;
    }

    .hero-card,
    .psalm-card {
        border-radius: 26px;
    }

    .main-title {
        font-size: 1.9rem;
        line-height: 1.02;
    }

    .psalm-message {
        font-size: 1.26rem;
        line-height: 1.72;
    }

    .btn-action {
        min-height: 52px;
    }
}

/* =========================
   FOOTER
========================= */

.app-footer {
    padding:
        18px
        20px
        34px;

    text-align: center;

    color: rgba(95,62,34,.72);

    font-size: .92rem;
}

.footer-copy {
    margin-bottom: 6px;

    font-weight: 700;
}

.footer-link {
    color: #8b5e34;

    text-decoration: none;

    font-size: .88rem;

    transition:
        opacity .15s ease,
        color .15s ease;
}

.footer-link:hover {
    color: #5f3e22;
    opacity: .9;
}