/* OmniAquatic Blog - shared styles for blog list and article pages */
:root {
    --oa-navy: #0a2540;
    --oa-blue: #0066cc;
    --oa-blue-2: #0284c7;
    --oa-cyan: #06b6d4;
    --oa-ink: #0f172a;
    --oa-text: #334155;
    --oa-muted: #64748b;
    --oa-line: #e2e8f0;
    --oa-bg: #f6f9fc;
    --oa-radius: 24px;
}
.oa-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 9999;
    background: linear-gradient(90deg, var(--oa-cyan), var(--oa-blue)); box-shadow: 0 0 12px rgba(6,182,212,.6); transition: width .1s linear; }

/* ---------- HERO ---------- */
.oa-hero { position: relative; overflow: hidden; color: #fff; padding: 8.5rem 1.5rem 11rem;
    background: radial-gradient(1200px 500px at 15% -10%, rgba(6,182,212,.35), transparent 60%),
                radial-gradient(900px 500px at 100% 0%, rgba(56,189,248,.25), transparent 55%),
                linear-gradient(160deg, #003d7a 0%, #0058b0 45%, #0077d9 100%); }
.oa-hero::before { content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
    background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1px); background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); mask-image: linear-gradient(180deg, #000 0%, transparent 85%); }
.oa-hero__bubble { position: absolute; border-radius: 50%; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
    animation: oa-rise 14s linear infinite; pointer-events: none; }
@keyframes oa-rise { from { transform: translateY(0); opacity: 0; } 10% { opacity: 1; } to { transform: translateY(-520px); opacity: 0; } }
.oa-hero__inner { position: relative; z-index: 2; max-width: 860px; margin: 0 auto; text-align: center; }
.oa-crumbs { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .4rem; font-size: .8rem; color: rgba(255,255,255,.75); margin-bottom: 1.5rem; }
.oa-crumbs a { color: rgba(255,255,255,.85); text-decoration: none; transition: color .2s; }
.oa-crumbs a:hover { color: #fff; }
.oa-crumbs .current { max-width: 320px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff; font-weight: 600; }
.oa-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .9rem; border-radius: 999px;
    background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(8px);
    font: 800 .7rem/1 'Outfit', sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.oa-chip i, .oa-chip svg { width: 14px; height: 14px; }
.oa-hero h1 { font-family: 'Outfit', sans-serif; font-weight: 800; letter-spacing: -.02em; line-height: 1.12;
    font-size: clamp(2rem, 4.6vw, 3.4rem); margin: 1.1rem 0 1rem; text-wrap: balance; }
.oa-hero__lead { font-size: clamp(1rem, 1.6vw, 1.15rem); line-height: 1.7; color: rgba(255,255,255,.85); max-width: 680px; margin: 0 auto; text-wrap: pretty; }
.oa-meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .6rem 1.25rem; margin-top: 1.75rem;
    font-size: .85rem; color: rgba(255,255,255,.85); font-weight: 600; }
.oa-meta span { display: inline-flex; align-items: center; gap: .45rem; }
.oa-meta i, .oa-meta svg { width: 16px; height: 16px; opacity: .9; }
.oa-meta .oa-author-dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
    background: linear-gradient(135deg, #22d3ee, #0ea5e9); box-shadow: 0 0 0 2px rgba(255,255,255,.5); font: 800 .75rem 'Outfit', sans-serif; color: #fff; }
.oa-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 90px; z-index: 1; }

/* ---------- COVER ---------- */
.oa-cover-wrap { max-width: 1120px; margin: -9rem auto 0; padding: 0 1.5rem; position: relative; z-index: 5; }
.oa-cover { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 16 / 8; background: #dbeafe;
    box-shadow: 0 30px 80px -20px rgba(0, 54, 120, .45), 0 0 0 6px rgba(255,255,255,.9); }
.oa-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.02); transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.oa-cover:hover img { transform: scale(1.06); }

/* ---------- LAYOUT ---------- */
.oa-post { background: var(--oa-bg); padding-bottom: 5rem; }
.oa-layout { max-width: 1120px; margin: 0 auto; padding: 3.5rem 1.5rem 0; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 3rem; align-items: start; }
.oa-article { background: #fff !important; border: 1px solid var(--oa-line); border-radius: var(--oa-radius); padding: clamp(1.5rem, 4vw, 3.5rem);
    box-shadow: 0 10px 40px -18px rgba(15, 23, 42, .15); min-width: 0; }

/* ---------- TOC / SIDEBAR ---------- */
.oa-aside { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 1.25rem; }
.oa-card { background: #fff; border: 1px solid var(--oa-line); border-radius: 20px; padding: 1.4rem; box-shadow: 0 10px 30px -20px rgba(15,23,42,.2); }
.oa-card__title { display: flex; align-items: center; gap: .5rem; font: 800 .72rem/1 'Outfit', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--oa-muted); margin-bottom: 1rem; }
.oa-card__title i, .oa-card__title svg { width: 15px; height: 15px; color: var(--oa-blue); }
.oa-toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; counter-reset: none; }
.oa-toc a { display: flex; gap: .65rem; align-items: flex-start; padding: .55rem .7rem; border-radius: 12px; color: var(--oa-text);
    font-size: .875rem; line-height: 1.4; font-weight: 600; text-decoration: none; transition: background .2s, color .2s; border-left: 2px solid transparent; }
.oa-toc a:hover { background: #f1f5f9; color: var(--oa-ink); }
.oa-toc a.is-active { background: #eff6ff; color: var(--oa-blue); border-left-color: var(--oa-blue); }
.oa-toc .n { flex: none; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: #e0f2fe; color: #0369a1; font: 800 .7rem 'Outfit', sans-serif; }
.oa-toc a.is-active .n { background: var(--oa-blue); color: #fff; }
.oa-toc-mobile { display: none; margin-bottom: 2rem; }
.oa-toc-mobile summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; font: 800 .95rem 'Outfit', sans-serif; color: var(--oa-ink); }
.oa-toc-mobile summary::-webkit-details-marker { display: none; }
.oa-toc-mobile summary svg { transition: transform .25s; }
.oa-toc-mobile[open] summary svg { transform: rotate(180deg); }
.oa-toc-mobile .oa-toc { margin-top: .9rem; }

.oa-side-cta { position: relative; overflow: hidden; border-radius: 20px; padding: 1.5rem; color: #fff;
    background: linear-gradient(150deg, #003d7a, #0066cc 60%, #06b6d4); box-shadow: 0 20px 40px -20px rgba(0,102,204,.7); }
.oa-side-cta::after { content: ""; position: absolute; width: 180px; height: 180px; right: -60px; top: -60px; border-radius: 50%; background: rgba(255,255,255,.12); }
.oa-side-cta h3 { font: 800 1.2rem/1.3 'Outfit', sans-serif; margin: .25rem 0 .5rem; position: relative; }
.oa-side-cta p { font-size: .875rem; line-height: 1.6; color: rgba(255,255,255,.85); margin: 0 0 1.1rem; position: relative; }
.oa-side-cta ul { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: .45rem; font-size: .82rem; font-weight: 600; position: relative; }
.oa-side-cta li { display: flex; gap: .5rem; align-items: center; }
.oa-side-cta li svg { width: 16px; height: 16px; color: #67e8f9; flex: none; }

/* ---------- BUTTONS ---------- */
.oa-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1.25rem; border-radius: 14px;
    font: 800 .85rem/1 'Outfit', sans-serif; letter-spacing: .02em; text-decoration: none !important; transition: transform .2s, box-shadow .2s, background .2s; white-space: nowrap; position: relative; }
.oa-btn svg { width: 18px; height: 18px; }
.oa-btn:hover { transform: translateY(-2px); }
.oa-btn--wa { background: linear-gradient(135deg, #22c55e, #10b981); color: #fff !important; box-shadow: 0 10px 24px -8px rgba(16,185,129,.6); }
.oa-btn--wa:hover { box-shadow: 0 16px 30px -8px rgba(16,185,129,.7); }
.oa-btn--block { width: 100%; }
.oa-btn--ghost { background: #f1f5f9; color: var(--oa-ink) !important; }
.oa-btn--ghost:hover { background: #e2e8f0; }

/* ---------- ARTICLE TYPOGRAPHY ---------- */
.oa-body { font-size: 1.075rem; line-height: 1.9; color: var(--oa-text); }
.oa-body > p:first-of-type { font-size: 1.2rem; line-height: 1.8; color: #1e293b; font-weight: 500; }
.oa-body > p:first-of-type::first-letter { float: left; font: 800 3.6rem/.9 'Outfit', sans-serif; color: var(--oa-blue); margin: .35rem .6rem 0 0; }
.oa-body p { margin: 0 0 1.4rem; }
.oa-body h2 { scroll-margin-top: 110px; font: 800 clamp(1.35rem, 2.4vw, 1.7rem)/1.3 'Outfit', sans-serif; color: var(--oa-ink); letter-spacing: -.01em; margin: 3rem 0 1.1rem; }
.oa-body h2.has-num { display: flex; gap: .9rem; align-items: center; padding-top: 2.25rem; border-top: 1px dashed var(--oa-line); }
.oa-body h2:not(.has-num) { padding-left: .9rem; border-left: 4px solid var(--oa-blue); }
.oa-h2-num { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-size: 1.2rem;
    background: linear-gradient(135deg, var(--oa-cyan), var(--oa-blue)); box-shadow: 0 10px 20px -8px rgba(0,102,204,.6); }
.oa-body h3 { font: 700 1.2rem/1.4 'Outfit', sans-serif; color: #1e293b; margin: 2rem 0 .75rem; scroll-margin-top: 110px; }
.oa-body strong, .oa-body b { color: var(--oa-ink); font-weight: 700; }
.oa-body a:not(.oa-btn) { color: var(--oa-blue); font-weight: 600; text-decoration: none;
    background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .3s, color .2s; }
.oa-body a:not(.oa-btn):hover { color: var(--oa-blue-2); background-size: 100% 2px; }
.oa-body ul { list-style: none; padding: 1.25rem 1.4rem; margin: 1.25rem 0 1.75rem; background: linear-gradient(180deg, #f0f9ff, #f8fbff);
    border: 1px solid #dbeafe; border-radius: 18px; display: grid; gap: .65rem; }
.oa-body ul li { position: relative; padding-left: 2.1rem; line-height: 1.65; color: #1e293b; font-weight: 500; }
.oa-body ul li::before { content: ""; position: absolute; left: 0; top: .2rem; width: 1.35rem; height: 1.35rem; border-radius: 50%;
    background: var(--oa-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 62% no-repeat; }
.oa-body ol { padding-left: 0; margin: 1.25rem 0 1.75rem; list-style: none; counter-reset: oa; display: grid; gap: .75rem; }
.oa-body ol li { counter-increment: oa; position: relative; padding-left: 2.6rem; line-height: 1.7; }
.oa-body ol li::before { content: counter(oa); position: absolute; left: 0; top: .1rem; width: 1.75rem; height: 1.75rem; border-radius: 9px;
    display: grid; place-items: center; background: #e0f2fe; color: #0369a1; font: 800 .8rem 'Outfit', sans-serif; }
.oa-body blockquote { position: relative; margin: 2.25rem 0; padding: 1.75rem 1.75rem 1.75rem 4.25rem; border-radius: 20px;
    background: linear-gradient(135deg, #ecfeff, #eff6ff); border: 1px solid #cffafe; font: 600 1.2rem/1.6 'Outfit', sans-serif; color: #075985; font-style: normal; }
.oa-body blockquote::before { content: "\201C"; position: absolute; left: 1.25rem; top: .6rem; font: 800 4.5rem/1 Georgia, serif; color: var(--oa-cyan); opacity: .6; }
.oa-body blockquote p { margin: 0; }
.oa-body img { max-width: 100%; height: auto; border-radius: 18px; margin: 1.75rem 0; box-shadow: 0 16px 40px -20px rgba(15,23,42,.35); }
.oa-body table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 1.75rem 0; font-size: .95rem; border: 1px solid var(--oa-line); border-radius: 14px; overflow: hidden; display: block; overflow-x: auto; }
.oa-body th { background: #f1f5f9; text-align: left; font-weight: 700; color: var(--oa-ink); }
.oa-body th, .oa-body td { padding: .75rem 1rem; border-bottom: 1px solid var(--oa-line); }
.oa-body hr { border: 0; height: 1px; background: var(--oa-line); margin: 2.5rem 0; }

/* Inline CTA */
.oa-inline-cta { display: flex; align-items: center; gap: 1.1rem; margin: 2.75rem 0 0; padding: 1.4rem 1.5rem; border-radius: 20px;
    background: linear-gradient(135deg, #0a2540, #0b4a8b); color: #fff; box-shadow: 0 20px 40px -24px rgba(10,37,64,.8); position: relative; overflow: hidden; }
.oa-inline-cta::before { content: ""; position: absolute; inset: auto -40px -60px auto; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(6,182,212,.45), transparent 70%); }
.oa-inline-cta__icon { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(255,255,255,.12); color: #67e8f9; }
.oa-inline-cta__body { flex: 1; position: relative; }
.oa-inline-cta p { margin: 0 !important; }
.oa-inline-cta__eyebrow { font: 800 .7rem 'Outfit', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #67e8f9; }
.oa-inline-cta__title { font: 700 1.05rem/1.45 'Outfit', sans-serif !important; color: #fff !important; margin-top: .2rem !important; }

/* Footer of article */
.oa-article-foot { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--oa-line); display: grid; gap: 1.75rem; }
.oa-share { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.oa-share__label { font: 800 .72rem 'Outfit', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--oa-muted); margin-right: .4rem; }
.oa-share a, .oa-share button { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--oa-line);
    background: #fff; color: var(--oa-text); cursor: pointer; transition: all .2s; position: relative; }
.oa-share a:hover, .oa-share button:hover { transform: translateY(-2px); border-color: var(--oa-blue); color: var(--oa-blue); box-shadow: 0 8px 18px -10px rgba(0,102,204,.6); }
.oa-share svg { width: 18px; height: 18px; }
.oa-share .copied::after { content: "Tersalin!"; position: absolute; bottom: 120%; left: 50%; transform: translateX(-50%); background: var(--oa-ink); color: #fff; font-size: .7rem; padding: .3rem .55rem; border-radius: 6px; white-space: nowrap; }
.oa-author { display: flex; gap: 1.1rem; align-items: center; padding: 1.4rem; border-radius: 20px; background: #f8fafc; border: 1px solid var(--oa-line); }
.oa-author__avatar { flex: none; width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; color: #fff;
    background: linear-gradient(135deg, var(--oa-cyan), var(--oa-blue)); }
.oa-author__avatar svg { width: 30px; height: 30px; }
.oa-author h3 { font: 800 1.05rem 'Outfit', sans-serif; color: var(--oa-ink); margin: 0 0 .25rem; }
.oa-author p { font-size: .9rem; line-height: 1.6; color: var(--oa-muted); margin: 0; }
.oa-badges { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.oa-badges span { font: 700 .7rem 'Outfit', sans-serif; padding: .3rem .6rem; border-radius: 999px; background: #e0f2fe; color: #0369a1; }
.oa-foot-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; }

/* Related */
.oa-related { max-width: 1120px; margin: 5rem auto 0; padding: 0 1.5rem; }
.oa-related__head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.75rem; }
.oa-related__head h2 { font: 800 clamp(1.5rem, 3vw, 2rem)/1.2 'Outfit', sans-serif; color: var(--oa-ink); margin: .4rem 0 0; }
.oa-eyebrow { font: 800 .72rem 'Outfit', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--oa-blue); }
.oa-related__all { font: 800 .85rem 'Outfit', sans-serif; color: var(--oa-blue); text-decoration: none; display: inline-flex; gap: .35rem; align-items: center; }
.oa-related__all svg { width: 16px; height: 16px; transition: transform .2s; }
.oa-related__all:hover svg { transform: translateX(4px); }
.oa-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.oa-rcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--oa-line); border-radius: 22px; overflow: hidden; text-decoration: none;
    transition: transform .3s, box-shadow .3s; }
.oa-rcard:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -24px rgba(0,60,130,.45); }
.oa-rcard__img { aspect-ratio: 16 / 10; overflow: hidden; background: #dbeafe; }
.oa-rcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.oa-rcard:hover .oa-rcard__img img { transform: scale(1.07); }
.oa-rcard__body { padding: 1.25rem 1.35rem 1.4rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.oa-rcard__cat { font: 800 .68rem 'Outfit', sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--oa-blue); }
.oa-rcard h3 { font: 800 1.05rem/1.35 'Outfit', sans-serif; color: var(--oa-ink); margin: 0; }
.oa-rcard p { font-size: .85rem; line-height: 1.6; color: var(--oa-muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .oa-layout { grid-template-columns: 1fr; gap: 2rem; }
    .oa-aside { position: static; }
    .oa-aside .oa-toc-card { display: none; }
    .oa-toc-mobile { display: block; }
    .oa-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .oa-hero { padding: 7rem 1.15rem 7.5rem; }
    .oa-crumbs .current { display: none; }
    .oa-cover-wrap { margin-top: -5.5rem; padding: 0 1rem; }
    .oa-cover { aspect-ratio: 4 / 3; border-radius: 20px; box-shadow: 0 20px 50px -20px rgba(0,54,120,.45), 0 0 0 4px #fff; }
    .oa-layout { padding: 2rem 1rem 0; }
    .oa-article { border-radius: 20px; }
    .oa-body { font-size: 1.02rem; line-height: 1.85; }
    .oa-body > p:first-of-type { font-size: 1.1rem; }
    .oa-h2-num { width: 38px; height: 38px; border-radius: 12px; font-size: 1rem; }
    .oa-body h2.has-num { align-items: flex-start; }
    .oa-inline-cta { flex-direction: column; align-items: flex-start; }
    .oa-inline-cta .oa-btn { width: 100%; }
    .oa-grid { grid-template-columns: 1fr; }
    .oa-related__head { flex-direction: column; align-items: flex-start; }
    .oa-foot-actions .oa-btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .oa-hero__bubble { display: none; }
    .oa-cover img, .oa-rcard, .oa-rcard__img img, .oa-btn { transition: none; }
}
