/* Happy Break – Custom Styles */

/* ── Smooth transitions ─────────────── */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* ── Typography helpers ─────────────── */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Prose styles for blog content ──── */
.prose p { margin-bottom: 1.25em; }
.prose h2 { font-size: 1.5rem; font-weight: 700; color: #1B2A6B; margin: 1.75em 0 0.75em; }
.prose h3 { font-size: 1.25rem; font-weight: 600; color: #1B2A6B; margin: 1.5em 0 0.5em; }
.prose ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1.25em; }
.prose ol { list-style: decimal; padding-left: 1.5rem; margin-bottom: 1.25em; }
.prose li { margin-bottom: 0.5em; }
.prose a  { color: #E31E24; text-decoration: underline; }
.prose blockquote {
    border-left: 4px solid #E31E24;
    padding-left: 1.25rem;
    margin: 1.5em 0;
    color: #4b5563;
    font-style: italic;
}

/* ── Loading spinner ────────────────── */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(27,42,107,0.2);
    border-top-color: #1B2A6B;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Form focus ring ────────────────── */
input:focus, textarea:focus, select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(27, 42, 107, 0.12);
}

/* ── Scrollbar (webkit) ─────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ── Hero parallax hint ─────────────── */
.hero-img {
    will-change: transform;
}

/* ── Card hover lift ────────────────── */
.card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(27,42,107,0.12);
}

/* ── Flash message animation ────────── */
.flash-enter {
    animation: slideDown 0.3s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Nav underline animation ─────────── */
nav a { position: relative; }
nav a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #1B2A6B;
    border-radius: 1px;
}

/* ── Admin sidebar active marker ──── */
aside a.border-r-2 {
    position: relative;
}
