/* ---------------------------------------------------------
   Omar Alshal Author Archive
   Everything is namespaced under .oa-author-page so it does
   not change the design of the rest of the website.
   --------------------------------------------------------- */

.oa-author-page {
    --oa-bg: #0a0a0d;
    --oa-panel: #111116;
    --oa-panel-2: #17171d;
    --oa-border: rgba(255,255,255,.09);
    --oa-text: #f7f7f8;
    --oa-muted: #a7a7b0;
    --oa-accent: #ff2f5b;
    --oa-accent-2: #ff6a7f;
    --oa-max: 1240px;
    background:
        radial-gradient(circle at 12% 2%, rgba(255,47,91,.11), transparent 28%),
        radial-gradient(circle at 88% 15%, rgba(110,72,255,.09), transparent 24%),
        var(--oa-bg);
    color: var(--oa-text);
    overflow: hidden;
}

.oa-author-page * { box-sizing: border-box; }
.oa-author-page a { color: inherit; text-decoration: none; }
.oa-author-page img { max-width: 100%; height: auto; }
.oa-shell { width: min(var(--oa-max), calc(100% - 40px)); margin: 0 auto; }

/* HERO */
.oa-hero { padding: 82px 0 54px; position: relative; }
.oa-hero::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.05);
    right: -160px;
    top: -120px;
}
.oa-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 70px;
    align-items: center;
}
.oa-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.oa-kicker::before {
    content: "";
    width: 26px;
    height: 2px;
    border-radius: 3px;
    background: var(--oa-accent);
}
.oa-title {
    margin: 0;
    color: #fff;
    font-size: clamp(52px, 6.2vw, 88px);
    line-height: .96;
    letter-spacing: -.055em;
    font-weight: 800;
}
.oa-role {
    margin: 22px 0 0;
    font-size: clamp(19px, 2vw, 25px);
    color: #e9e9ed;
    font-weight: 600;
    letter-spacing: -.02em;
}
.oa-intro {
    max-width: 760px;
    margin: 18px 0 0;
    color: var(--oa-muted);
    font-size: 17px;
    line-height: 1.85;
}
.oa-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.oa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 21px;
    border-radius: 999px;
    border: 1px solid var(--oa-border);
    font-size: 14px;
    font-weight: 700;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.oa-btn:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.2); }
.oa-btn-primary { background: var(--oa-accent); border-color: var(--oa-accent); color: #fff; }
.oa-btn-primary:hover { background: #ff456b; color: #fff; }
.oa-btn-secondary { background: rgba(255,255,255,.045); color: #fff; }
.oa-btn svg { width: 16px; height: 16px; margin-left: 8px; }

.oa-portrait-wrap { position: relative; justify-self: end; width: min(100%, 390px); }
.oa-portrait-card {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 28px;
    background: linear-gradient(145deg, #24242c, #111116);
    border: 1px solid var(--oa-border);
    box-shadow: 0 34px 80px rgba(0,0,0,.34);
}
.oa-portrait-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.oa-portrait-card .avatar { width: 100%; height: 100%; object-fit: cover; }
.oa-portrait-fallback {
    width: 100%; height: 100%; display: grid; place-items: center;
    font-size: 88px; font-weight: 800; letter-spacing: -.06em;
    color: rgba(255,255,255,.86);
    background: radial-gradient(circle at 50% 25%, rgba(255,47,91,.35), transparent 36%), linear-gradient(145deg,#25252d,#101014);
}
.oa-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin-top: 18px;
    border: 1px solid var(--oa-border);
    border-radius: 18px;
    overflow: hidden;
    background: var(--oa-border);
}
.oa-stat { background: rgba(13,13,17,.96); padding: 16px 13px; text-align: center; }
.oa-stat strong { display: block; font-size: 19px; color: #fff; line-height: 1.15; }
.oa-stat span { display: block; margin-top: 5px; color: var(--oa-muted); font-size: 11px; line-height: 1.3; }

/* SECTION */
.oa-section { padding: 54px 0; }
.oa-section-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 26px; }
.oa-eyebrow { margin: 0 0 7px; color: var(--oa-accent-2); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.oa-section-title { margin: 0; color: #fff; font-size: clamp(30px, 4vw, 48px); letter-spacing: -.04em; line-height: 1.05; }
.oa-section-copy { margin: 8px 0 0; max-width: 650px; color: var(--oa-muted); line-height: 1.7; }

/* FEATURED */
.oa-featured {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    min-height: 470px;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid var(--oa-border);
    background: var(--oa-panel);
}
.oa-featured-media { position: relative; min-height: 380px; background: #15151b; overflow: hidden; }
.oa-featured-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform .6s ease; }
.oa-featured:hover .oa-featured-media img { transform: scale(1.025); }
.oa-image-fallback {
    width: 100%; height: 100%; min-height: 100%;
    background:
      radial-gradient(circle at 24% 28%, rgba(255,47,91,.28), transparent 24%),
      radial-gradient(circle at 72% 62%, rgba(104,76,255,.22), transparent 30%),
      linear-gradient(145deg,#202027,#101014);
}
.oa-featured-content { display: flex; flex-direction: column; justify-content: center; padding: clamp(30px, 4vw, 58px); }
.oa-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--oa-muted); font-size: 12px; font-weight: 600; }
.oa-dot { width: 3px; height: 3px; border-radius: 50%; background: #62626b; }
.oa-cat { color: var(--oa-accent-2); text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.oa-featured-title { margin: 18px 0 0; font-size: clamp(31px, 4vw, 51px); letter-spacing: -.045em; line-height: 1.07; color: #fff; }
.oa-featured-excerpt { margin: 18px 0 0; color: var(--oa-muted); font-size: 15px; line-height: 1.75; }
.oa-read-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 25px; color: #fff; font-weight: 800; font-size: 14px; }
.oa-read-link span { color: var(--oa-accent); transition: transform .2s ease; }
.oa-read-link:hover span { transform: translateX(4px); }

/* FILTERS */
.oa-filter-wrap { display: flex; gap: 9px; flex-wrap: wrap; margin: 28px 0 30px; }
.oa-filter {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 15px;
    border-radius: 999px;
    color: #b8b8c1;
    background: rgba(255,255,255,.035);
    border: 1px solid var(--oa-border);
    font-size: 13px;
    font-weight: 700;
    transition: .2s ease;
}
.oa-filter:hover, .oa-filter.is-active { color: #fff; border-color: rgba(255,47,91,.5); background: rgba(255,47,91,.12); }

/* GRID */
.oa-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.oa-card {
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid var(--oa-border);
    background: var(--oa-panel);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.oa-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,.17); box-shadow: 0 22px 54px rgba(0,0,0,.24); }
.oa-card-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #15151b; }
.oa-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.oa-card:hover .oa-card-media img { transform: scale(1.035); }
.oa-card-body { padding: 22px 22px 24px; }
.oa-card-title { margin: 12px 0 0; color: #fff; font-size: 21px; line-height: 1.3; letter-spacing: -.025em; }
.oa-card-title a:hover { color: #fff; }
.oa-card-excerpt { margin: 12px 0 0; color: var(--oa-muted); line-height: 1.65; font-size: 14px; }

/* PAGINATION */
.oa-pagination { margin-top: 38px; }
.oa-pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.oa-pagination .page-numbers {
    min-width: 42px; height: 42px; padding: 0 13px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--oa-border); background: rgba(255,255,255,.035); border-radius: 12px; color: #d5d5da; font-weight: 700; font-size: 13px;
}
.oa-pagination .page-numbers.current, .oa-pagination .page-numbers:hover { background: var(--oa-accent); color: #fff; border-color: var(--oa-accent); }

/* ABOUT */
.oa-about {
    display: grid;
    grid-template-columns: .7fr 1.3fr;
    gap: 54px;
    align-items: center;
    padding: clamp(32px,5vw,64px);
    border-radius: 28px;
    border: 1px solid var(--oa-border);
    background: linear-gradient(135deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
}
.oa-about-avatar { max-width: 300px; aspect-ratio: 1; overflow: hidden; border-radius: 24px; border: 1px solid var(--oa-border); background: #18181f; }
.oa-about-avatar img { width: 100%; height: 100%; object-fit: cover; }
.oa-about-title { margin: 0; color: #fff; font-size: clamp(34px, 4vw, 54px); letter-spacing: -.045em; line-height: 1.04; }
.oa-about-copy { margin: 17px 0 0; color: var(--oa-muted); font-size: 16px; line-height: 1.85; max-width: 740px; }

/* CTA */
.oa-cta-section { padding: 30px 0 88px; }
.oa-cta {
    padding: clamp(36px, 6vw, 72px);
    border-radius: 30px;
    text-align: center;
    border: 1px solid rgba(255,47,91,.3);
    background: radial-gradient(circle at 50% -10%, rgba(255,47,91,.25), transparent 42%), #111116;
}
.oa-cta h2 { margin: 0 auto; max-width: 850px; color: #fff; font-size: clamp(34px, 4.8vw, 62px); line-height: 1.04; letter-spacing: -.05em; }
.oa-cta p { margin: 18px auto 0; max-width: 690px; color: var(--oa-muted); font-size: 16px; line-height: 1.75; }
.oa-cta .oa-actions { justify-content: center; }

.oa-empty { padding: 44px; border-radius: 22px; border: 1px solid var(--oa-border); background: var(--oa-panel); color: var(--oa-muted); }

@media (max-width: 1024px) {
    .oa-hero-grid { grid-template-columns: 1fr .72fr; gap: 38px; }
    .oa-featured { grid-template-columns: 1fr; }
    .oa-featured-media { min-height: 430px; }
    .oa-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 767px) {
    .oa-shell { width: min(var(--oa-max), calc(100% - 28px)); }
    .oa-hero { padding: 54px 0 32px; }
    .oa-hero-grid { grid-template-columns: 1fr; }
    .oa-portrait-wrap { justify-self: start; width: min(100%, 360px); order: -1; }
    .oa-title { font-size: clamp(46px, 15vw, 68px); }
    .oa-intro { font-size: 15px; }
    .oa-section { padding: 40px 0; }
    .oa-section-head { display: block; }
    .oa-featured-media { min-height: 250px; }
    .oa-featured-content { padding: 26px 22px 30px; }
    .oa-grid { grid-template-columns: 1fr; }
    .oa-about { grid-template-columns: 1fr; gap: 26px; padding: 26px; }
    .oa-about-avatar { max-width: 210px; }
    .oa-cta-section { padding-bottom: 58px; }
}
