/*
Theme Name: myhush
Description: Subscription creator platform: creator profiles, free and premium posts, server-side blurred previews. Works with Paid Memberships Pro.
Version: 1.0.1
Requires PHP: 7.4
Text Domain: myhush
*/

:root {
    --bg: #0f0d12;
    --surface: #18151d;
    --surface-2: #221e29;
    --line: #2e2936;
    --text: #f3eef6;
    --muted: #a59cae;
    --accent: #e8577e;
    --accent-2: #f39a6b;
    --accent-ink: #fff;
    --gold: #f2c46d;
    --radius: 18px;
    --wrap: 640px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.55 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.mh-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.mh-main { min-height: 70vh; }

/* Bara de sus */
.mh-topbar {
    position: sticky; top: 0; z-index: 20;
    background: rgba(15, 13, 18, .82);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.mh-topbar__inner { max-width: 960px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; }
.mh-logo { text-decoration: none; font-family: Fraunces, Georgia, serif; font-size: 26px; letter-spacing: -.02em; line-height: 1; }
.mh-logo__my { color: var(--muted); font-weight: 600; }
.mh-logo__hush { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 600; }
.mh-topbar__nav { display: flex; gap: 18px; font-size: 14px; }
.mh-topbar__nav a { color: var(--muted); text-decoration: none; }
.mh-topbar__nav a:hover { color: var(--text); }

/* Profil */
.mh-cover {
    height: clamp(150px, 32vw, 280px);
    background: radial-gradient(120% 140% at 15% 10%, #5b2440 0%, #241a2f 45%, var(--bg) 100%) center/cover no-repeat;
    max-width: 960px; margin: 0 auto;
}
@media (min-width: 960px) { .mh-cover { border-radius: 0 0 var(--radius) var(--radius); } }
.mh-profile__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: -56px; }
.mh-profile__cta { padding-bottom: 6px; }
.mh-avatar { border-radius: 50%; object-fit: cover; background: var(--surface-2); flex: none; }
.mh-avatar--initials { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: var(--muted); }
.mh-avatar--xl { width: 112px; height: 112px; border: 4px solid var(--bg); font-size: 34px; }
.mh-avatar--sm { width: 40px; height: 40px; font-size: 14px; }
.mh-profile__name { margin: 12px 0 0; font-size: 26px; line-height: 1.2; font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mh-profile__handle { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.mh-profile__bio { margin-top: 12px; color: var(--text); }
.mh-profile__bio p { margin: 0 0 8px; }
.mh-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0 0; padding: 0; color: var(--muted); font-size: 14px; }
.mh-stats strong { color: var(--text); }

.mh-ai-badge {
    display: inline-block; vertical-align: middle;
    font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
    padding: 3px 8px; border-radius: 999px;
    color: #cbb8ff; background: rgba(140, 110, 255, .14); border: 1px solid rgba(140, 110, 255, .35);
}

/* Butoane */
.mh-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 11px 20px; border-radius: 999px; border: 0;
    font: 600 15px/1.2 Inter, system-ui, sans-serif; text-decoration: none; cursor: pointer;
    white-space: nowrap;
}
.mh-btn--primary { color: var(--accent-ink); background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 6px 22px rgba(232, 87, 126, .28); }
.mh-btn--primary:hover { filter: brightness(1.07); }
.mh-btn__price { font-weight: 500; opacity: .9; padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, .35); }
.mh-btn--subscribed { color: var(--text); background: var(--surface-2); border: 1px solid var(--line); }
.mh-btn--soon { color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); cursor: default; }

/* Tab-uri */
.mh-tabs { display: flex; gap: 4px; margin: 24px 0 16px; border-bottom: 1px solid var(--line); }
.mh-tabs a { padding: 10px 14px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.mh-tabs a.is-active { color: var(--text); border-color: var(--accent); }

/* Carduri */
.mh-feed { display: flex; flex-direction: column; gap: 16px; padding-bottom: 40px; }
.mh-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.mh-card__head { display: flex; align-items: center; gap: 10px; padding: 14px 16px 0; }
.mh-card__who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.mh-card__name { font-weight: 600; font-size: 15px; }
.mh-card__date { color: var(--muted); font-size: 13px; text-decoration: none; }
.mh-card__title { margin: 12px 16px 0; font-size: 17px; font-weight: 600; line-height: 1.4; }
.mh-card__title a { text-decoration: none; }
.mh-card__text { margin: 8px 16px 0; color: var(--text); }
.mh-card__media { position: relative; display: block; margin-top: 14px; background: var(--surface-2); }
.mh-card__img { width: 100%; max-height: 720px; object-fit: cover; }
.mh-card__more { position: absolute; right: 12px; bottom: 12px; padding: 5px 10px; border-radius: 999px; font-size: 13px; background: rgba(0, 0, 0, .6); }
.mh-card > :last-child:not(.mh-card__media):not(.mh-locked) { margin-bottom: 16px; }

.mh-tag { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; color: var(--muted); background: var(--surface-2); }
.mh-tag--premium { color: var(--gold); background: rgba(242, 196, 109, .12); }

/* Blocat: poza mica de pe server, marita si blurata */
.mh-locked { position: relative; margin-top: 14px; aspect-ratio: 4 / 5; max-height: 640px; width: 100%; overflow: hidden; background: radial-gradient(100% 100% at 30% 20%, #4a2038, #1b1622); }
.mh-locked--tall { aspect-ratio: 3 / 4; }
.mh-locked__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(22px) saturate(1.15); transform: scale(1.25); }
.mh-locked__over {
    position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
    padding: 24px; text-align: center; background: rgba(15, 13, 18, .35);
}
.mh-locked__icon { font-size: 34px; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .4)); }
.mh-locked__media { font-weight: 600; font-size: 15px; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.mh-locked__text { margin: 0; max-width: 340px; color: var(--text); text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.mh-locked__login { color: var(--text); font-size: 14px; opacity: .85; }

/* Postare si pagini */
.mh-single { padding-top: 18px; padding-bottom: 40px; }
.mh-back { display: inline-block; margin-bottom: 14px; color: var(--muted); text-decoration: none; font-size: 14px; }
.mh-card--single .mh-card__title { font-size: 22px; }
.mh-content { padding: 4px 16px 16px; overflow-wrap: anywhere; }
.mh-content img, .mh-content video { border-radius: 12px; margin: 12px 0; width: 100%; height: auto; }
.mh-content .wp-block-gallery { gap: 8px; }
.mh-page { padding-top: 28px; padding-bottom: 48px; }
.mh-page__title { font-family: Fraunces, Georgia, serif; font-size: 30px; margin: 0 0 18px; }
.mh-page .mh-content { padding: 0; }
.mh-empty { color: var(--muted); text-align: center; padding: 40px 0; }
.mh-locked-note { color: var(--muted); }

/* Paginare */
.navigation.pagination .nav-links { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.navigation.pagination .page-numbers { padding: 8px 13px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-size: 14px; }
.navigation.pagination .current { border-color: var(--accent); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }

/* Formularele Paid Memberships Pro (abonare, cont): culorile pluginului pe tema intunecata */
:root {
    --pmpro--color--base: var(--surface);
    --pmpro--color--base-2: var(--surface-2);
    --pmpro--color--contrast: var(--text);
    --pmpro--color--accent: var(--accent);
    --pmpro--color--accent--variation: var(--accent-2);
    --pmpro--color--border--variation: var(--line);
    --pmpro--color--info-background: var(--surface-2);
    --pmpro--color--info-text: var(--text);
}
.mh-content h2, .mh-content h3, .mh-content legend, .mh-content label, .mh-content .pmpro_card_title, .mh-content .pmpro_form_heading { color: var(--text); }
.mh-content a { color: var(--accent-2); }
.mh-content input[type="text"], .mh-content input[type="email"], .mh-content input[type="password"], .mh-content select, .mh-content textarea {
    width: 100%; max-width: 100%; padding: 11px 12px; border-radius: 10px;
    color: var(--text); background: var(--surface-2); border: 1px solid var(--line); font: inherit;
}
.mh-content input[type="submit"], .mh-content .pmpro_btn, .mh-content button[type="submit"] {
    display: inline-block; padding: 12px 22px; border: 0; border-radius: 999px; cursor: pointer;
    color: var(--accent-ink); background: linear-gradient(90deg, var(--accent), var(--accent-2)); font: 600 15px/1.2 Inter, system-ui, sans-serif; text-decoration: none;
}
.mh-content .pmpro_card, .mh-content .pmpro_box, .mh-content fieldset { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; color: var(--text); }
.mh-content table { width: 100%; border-collapse: collapse; }
.mh-content th, .mh-content td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; }

/* Subsol */
.mh-footer { border-top: 1px solid var(--line); margin-top: 24px; }
.mh-footer__inner { max-width: var(--wrap); margin: 0 auto; padding: 24px 16px 40px; color: var(--muted); font-size: 13px; }
.mh-footer__note { margin: 0 0 8px; }
.mh-footer__links { display: flex; gap: 16px; margin: 14px 0 8px; }
.mh-footer__links a { color: var(--muted); }
.mh-footer__copy { margin: 0; }

.mh-profile__cta-mobile { display: none; }

@media (max-width: 560px) {
    .mh-avatar--xl { width: 92px; height: 92px; font-size: 28px; }
    .mh-profile__head { margin-top: -46px; }
    .mh-profile__cta { display: none; }
    .mh-profile__cta-mobile { display: block; margin-top: 16px; }
    .mh-profile__cta-mobile .mh-btn { width: 100%; }
    .mh-btn { padding: 11px 16px; font-size: 14px; }
    .mh-btn__price { padding-left: 8px; }
}
