@import url("navbar.css");
@import url("footer.css");
@import url("card.css");
@import url("create_page.css");
@import url("edit_page.css");
@import url("reading_page.css");
@import url("form_validation.css");
@import url("become_author.css");
@import url("navbar_create.css");
@import url("my_stories_card.css");
@import url("profile.css");
@import url("help.css");
@import url("analytics.css");
@import url("library.css");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;

    background:
        radial-gradient(circle at 20% 10%,
            rgba(139, 92, 246, 0.25),
            transparent 40%),
        radial-gradient(circle at 80% 30%,
            rgba(160, 32, 240, 0.18),
            transparent 40%),
        #0a0015;

    background-repeat: no-repeat;
    background-attachment: scroll;

    color: white;
}


/* =========================
   MAIN
========================= */

main {
    max-width: 1100px;
    margin: 30px auto 80px;
    padding: 0 20px;
}

/* =========================
   CATALOG SEARCH
========================= */

.catalog-search {
    margin-bottom: 40px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 520px;
    margin: 0 auto;
}

.search-icon {
    position: absolute;
    left: 16px;
    color: #666;
    pointer-events: none;
    flex-shrink: 0;
}

.search-input {
    width: 100%;
    padding: 13px 44px;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: all 0.25s ease;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.search-input:focus {
    border-color: rgba(139, 92, 246, 0.6);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(160, 32, 240, 0.12);
}

.search-clear {
    position: absolute;
    right: 14px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    line-height: 1;
    padding: 4px;
    border-radius: 50%;
    transition: color 0.2s ease;
}

.search-clear:hover {
    color: white;
}


.search-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 80px 20px;
    text-align: center;
    color: #555;
    font-size: 16px;
}

.search-empty strong {
    color: #888;
}

.search-reset-link {
    font-size: 13px;
    color: #8b5cf6;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.search-reset-link:hover {
    opacity: 1;
}

/* =========================
   CATALOG FILTERS
========================= */

.catalog-filters {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 48px;
    align-items: center;
}

.filter-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
    width: 100%;
}

.filter-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #777;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.filter-chip {
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

/* Larger chips in the filter bar */
.filter-chips .card-tag,
.filter-chips .card-dynamic {
    font-size: 13px;
    padding: 8px 18px;
    border-radius: 30px;
}

.filter-chip:hover {
    transform: translateY(-2px);
    opacity: 0.85;
}

.filter-chip.selected.card-tag {
    background: rgba(139, 92, 246, 0.3);
    border-color: rgba(139, 92, 246, 0.65);
    color: white;
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.25);
}

.filter-chip.selected.card-dynamic {
    background: linear-gradient(135deg, rgba(15, 80, 40, 0.95), rgba(25, 100, 55, 0.95));
    border-color: rgba(40, 160, 80, 0.65);
    color: #d0ffd8;
    box-shadow: 0 0 8px rgba(40, 160, 80, 0.25);
}

.filter-reset {
    background: none;
    border: none;
    color: #555;
    font-size: 17px;
    cursor: pointer;
    padding: 4px 6px;
    line-height: 1;
    align-self: center;
    transition: color 0.2s ease;
}
.filter-reset:hover {
    color: white;
}

/* ===== Pending Review info tooltip ===== */
.badge-info {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 5px;
    vertical-align: middle;
}

.badge-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 1px solid rgba(250, 204, 21, 0.55);
    color: #facc15;
    font-size: 8px;
    font-style: italic;
    font-weight: 800;
    cursor: help;
    flex-shrink: 0;
}

.badge-info-box {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: 240px;
    padding: 12px 14px;
    background: #160c28;
    border: 1px solid rgba(250, 204, 21, 0.2);
    border-radius: 10px;
    color: #bbb;
    font-size: 11px;
    line-height: 1.65;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    z-index: 100;
    pointer-events: none;
}

.badge-info:hover .badge-info-box {
    display: block;
}

/* Active filter summary */
.search-results-info {
    margin-bottom: 24px;
    font-size: 13px;
    color: #666;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.search-results-info strong {
    color: #999;
}

.result-chip {
    font-size: 11px;
}

/* =========================
   GUIDELINES PAGE
========================= */

.guidelines-hero {
    text-align: center;
    padding: 64px 20px 56px;
    max-width: 680px;
    margin: 0 auto;
}

.guidelines-hero-badge {
    display: inline-block;
    padding: 4px 16px;
    margin-bottom: 22px;
    border-radius: 40px;
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: #c4b5fd;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.guidelines-hero-title {
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.15;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 30%, #c4b5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.guidelines-hero-sub {
    font-size: 16px;
    color: #888;
    line-height: 1.8;
}

.guidelines-body {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 20px 100px;
    display: flex;
    flex-direction: column;
    gap: 64px;
}

/* Section */

.guidelines-section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.guidelines-section-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #a78bfa;
    flex-shrink: 0;
}

.guidelines-section-icon--green {
    background: rgba(20, 80, 40, 0.3);
    border-color: rgba(40, 150, 80, 0.35);
    color: #6ee7a0;
}

.guidelines-section-icon--gold {
    background: rgba(120, 80, 0, 0.25);
    border-color: rgba(234, 179, 8, 0.3);
    color: #fbbf24;
}

.guidelines-section-title {
    font-size: 22px;
    font-weight: 700;
    color: white;
    letter-spacing: -0.2px;
}

/* Rules list */

.guidelines-rules {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.guidelines-rule {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 22px 26px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.guidelines-rule:hover {
    background: rgba(139, 92, 246, 0.06);
    border-color: rgba(139, 92, 246, 0.12);
}

.guidelines-rule--green:hover {
    background: rgba(20, 80, 40, 0.12);
    border-color: rgba(40, 150, 80, 0.15);
}

.guidelines-rule--gold:hover {
    background: rgba(120, 80, 0, 0.1);
    border-color: rgba(234, 179, 8, 0.15);
}

.rule-number {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    color: rgba(139, 92, 246, 0.5);
    min-width: 28px;
    padding-top: 3px;
    flex-shrink: 0;
}

.rule-number--green {
    color: rgba(40, 150, 80, 0.6);
}

.rule-number--gold {
    color: rgba(234, 179, 8, 0.55);
}

.rule-content {
    flex: 1;
}

.rule-title {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
}

.rule-text {
    font-size: 14px;
    color: #777;
    line-height: 1.75;
}

.rule-text + .rule-text {
    margin-top: 6px;
}

/* =========================
   AUTH PAGES
========================= */

.forgot-password-link {
    display: block;
    text-align: center;
    margin-top: 14px;
    font-size: 13px;
    color: #8b5cf6;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.forgot-password-link:hover {
    opacity: 1;
}

.auth-page-sub {
    text-align: center;
    color: #888;
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 28px;
    margin-top: -10px;
}

/* =========================
   FORM BANNERS
========================= */

.form-success-banner {
    margin: 0 auto 24px;
    max-width: 400px;
    padding: 12px 18px;
    border-radius: 10px;
    background: rgba(15, 80, 40, 0.4);
    border: 1px solid rgba(40, 160, 80, 0.4);
    color: #a8f0c6;
    font-size: 14px;
    text-align: center;
}

.form-warn-banner {
    margin: 0 auto 24px;
    max-width: 400px;
    padding: 12px 18px;
    border-radius: 10px;
    background: rgba(120, 60, 0, 0.35);
    border: 1px solid rgba(234, 179, 8, 0.35);
    color: #fde68a;
    font-size: 14px;
    text-align: center;
    line-height: 1.5;
}

/* =========================
   EMAIL SENT PAGE
========================= */

.email-sent-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 480px;
    margin: 80px auto 0;
    padding: 0 20px;
}

.email-sent-icon {
    margin-bottom: 28px;
    opacity: 0.9;
}

.email-sent-title {
    font-size: 26px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
}

.email-sent-body {
    font-size: 15px;
    color: #aaa;
    line-height: 1.7;
}

.email-sent-body strong {
    color: #ddd;
}

.email-sent-hint {
    margin-top: 32px;
    font-size: 13px;
    color: #555;
    line-height: 1.6;
}

.email-sent-link {
    color: #8b5cf6;
    text-decoration: none;
}

.email-sent-link:hover {
    text-decoration: underline;
}

.email-sent-back {
    margin-top: 36px;
    display: inline-block;
    padding: 12px 32px;
    border-radius: 40px;
    border: 1px solid rgba(139, 92, 246, 0.45);
    color: #c4b5fd;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.resend-block {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    animation: fadeInUp 0.35s ease;
}

.resend-label {
    font-size: 13px;
    color: #555;
}

.resend-btn {
    background: none;
    border: 1px solid rgba(139, 92, 246, 0.35);
    color: #a78bfa;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    padding: 7px 20px;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.resend-btn:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.6);
    color: white;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.email-sent-back:hover {
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.7);
    color: white;
    transform: translateY(-2px);
}

/* =========================
   DELETE CONFIRM MODAL
========================= */

.delete-modal {
    position: fixed;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(5, 0, 15, 0.8);
    backdrop-filter: blur(6px);

    z-index: 2000;
}

/* modal box */

.delete-modal-content {
    width: 360px;
    padding: 32px 28px;

    border-radius: 16px;

    background: rgba(20, 5, 35, 0.85);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border: 1px solid rgba(255, 255, 255, 0.07);

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(220, 38, 38, 0.12);

    text-align: center;
    animation: modalFade 0.18s ease;
}

.delete-modal-icon {
    margin-bottom: 14px;
    opacity: 0.85;
}

.delete-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

.delete-modal-text {
    font-size: 14px;
    font-weight: 400;
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 26px;
}

.delete-modal-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.delete-cancel {
    padding: 9px 20px;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: transparent;
    color: #ccc;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.delete-cancel:hover {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.06);
    color: white;
    transform: translateY(-2px);
}

.delete-confirm {
    padding: 9px 20px;
    border-radius: 40px;
    border: 1px solid rgba(220, 38, 38, 0.45);
    background: transparent;
    color: #f87171;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.delete-confirm:hover {
    background: rgba(220, 38, 38, 0.15);
    border-color: rgba(220, 38, 38, 0.7);
    color: #fca5a5;
    box-shadow: 0 0 14px rgba(220, 38, 38, 0.3);
    transform: translateY(-2px);
}

/* hidden state */

.hidden {
    display: none;
}

/* =========================
   AGE GATE
========================= */

.age-gate {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(5, 0, 15, 0.97);

    transition: opacity 0.3s ease;
    will-change: opacity;
}

.age-gate.fade-out {
    opacity: 0;
    pointer-events: none;
}

.age-gate-card {
    width: 440px;
    padding: 52px 44px;

    border-radius: 24px;

    background: rgba(18, 4, 32, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.07);

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.8),
        0 0 50px rgba(160, 32, 240, 0.18);

    text-align: center;

    animation: modalFade 0.35s ease;
}

.age-gate-logo {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.5px;

    background: linear-gradient(135deg, #8b5cf6, #c026d3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;

    margin-bottom: 18px;
}

.age-gate-badge {
    display: inline-block;

    padding: 3px 14px;
    margin-bottom: 24px;

    border-radius: 40px;
    border: 1px solid rgba(248, 113, 113, 0.45);

    color: #f87171;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.age-gate-title {
    font-size: 21px;
    font-weight: 700;
    margin-bottom: 12px;
    color: white;
}

.age-gate-text {
    font-size: 14px;
    color: #999;
    line-height: 1.75;
    max-width: 320px;
    margin: 0 auto 34px auto;
}

.age-gate-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 22px;
}

.age-gate-enter {
    padding: 11px 28px;
    border-radius: 50px;
    border: 1px solid rgba(139, 92, 246, 0.5);
    background: transparent;
    color: white;
    font-weight: 600;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s ease;
}

.age-gate-enter:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.8);
    box-shadow: 0 0 18px rgba(160, 32, 240, 0.25);
    transform: translateY(-2px);
}

.age-gate-leave {
    padding: 11px 28px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: #888;
    font-weight: 600;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s ease;
}

.age-gate-leave:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.22);
    color: #ccc;
    transform: translateY(-2px);
}

.age-gate-note {
    font-size: 11px;
    color: #555;
    line-height: 1.6;
}

/* modal animation */

@keyframes modalFade {

    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}