/* =========================================================
   NCYCL shared site styles
   Theme extracted from the original homepage, plus shared
   components for feature/blog/privacy pages and the admin.
   ========================================================= */

:root {
    --purple-1: #c14be8;
    --purple-2: #873be0;
    --purple-3: #3520c9;

    --dark: #0b0b12;
    --panel: #14141f;
    --panel-2: #1b1b2a;

    --text: #f7f7fb;
    --muted: #a7a7b5;

    --border: rgba(255, 255, 255, 0.10);
    --border-strong: rgba(255, 255, 255, 0.18);

    --accent: var(--purple-1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "SF Pro Display",
        "SF Pro Text",
        "Segoe UI",
        sans-serif;

    background: var(--dark);
    color: var(--text);

    line-height: 1.6;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

/* -------------------------
   PAGE
------------------------- */

.page {
    position: relative;
    overflow: hidden;

    min-height: 60vh;

    padding: 55px 25px 80px;

    background:
        radial-gradient(
            circle at 75% 10%,
            rgba(135, 59, 224, 0.30),
            transparent 35%
        ),
        radial-gradient(
            circle at 20% 0%,
            rgba(193, 75, 232, 0.18),
            transparent 32%
        ),
        var(--dark);
}

.page::after {
    content: "";

    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    height: 500px;

    background:
        radial-gradient(
            circle at 50% 100%,
            rgba(53, 32, 201, 0.16),
            transparent 60%
        );

    pointer-events: none;
}

.container {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 1100px;

    margin: 0 auto;
}

.container.narrow {
    max-width: 780px;
}

/* -------------------------
   HEADER / NAV
------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;

    padding: 0 25px;

    background: rgba(11, 11, 18, 0.85);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);

    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;

    min-height: 64px;
    padding: 8px 0;
}

.site-header .brand {
    margin: 0;

    justify-content: flex-start;

    text-decoration: none;
    color: var(--text);
}

.site-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 4px;
}

.site-nav a {
    padding: 8px 13px;

    border-radius: 100px;

    color: var(--muted);
    text-decoration: none;

    font-size: 0.92rem;
    font-weight: 600;

    transition: color 0.15s, background 0.15s;
}

.site-nav a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.site-nav a.active {
    color: var(--text);
    background: rgba(135, 59, 224, 0.20);
}

/* -------------------------
   BRAND
------------------------- */

.brand {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    margin-bottom: 70px;

    font-size: 1rem;
    font-weight: 700;

    letter-spacing: -0.02em;
}

.brand-icon {
    width: 38px;
    height: 38px;

    border-radius: 10px;

    display: grid;
    place-items: center;

    background:
        linear-gradient(
            135deg,
            var(--purple-1),
            var(--purple-2) 45%,
            var(--purple-3)
        );

    font-size: 19px;
    font-weight: 800;
    font-style: italic;

    box-shadow:
        0 8px 30px rgba(111, 52, 220, 0.25);
}

/* -------------------------
   INTRO
------------------------- */

.intro {
    text-align: center;

    max-width: 850px;

    margin: 0 auto 75px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 6px 13px;

    border-radius: 100px;

    background: rgba(135, 59, 224, 0.14);
    border: 1px solid rgba(193, 75, 232, 0.25);

    color: #dca8f2;

    font-size: 0.8rem;
    font-weight: 600;
}

.eyebrow::before {
    content: "";

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #c14be8;

    box-shadow:
        0 0 12px #c14be8;
}

h1 {
    margin: 25px 0 20px;

    font-size: clamp(4rem, 9vw, 7.5rem);

    line-height: 0.9;

    letter-spacing: -0.065em;
}

h1 span {
    display: block;

    background:
        linear-gradient(
            120deg,
            #fff,
            #dca8f2 50%,
            #8d75ff
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

.intro p {
    max-width: 620px;

    margin: 0 auto;

    color: var(--muted);

    font-size: clamp(1rem, 2vw, 1.2rem);
}

/* Smaller page heading (features/blog/privacy/support) */

.page-head {
    text-align: center;

    max-width: 780px;

    margin: 10px auto 55px;
}

.page-head h1 {
    margin: 18px 0 16px;

    font-size: clamp(2.4rem, 5vw, 3.6rem);

    line-height: 1.05;

    letter-spacing: -0.04em;
}

.page-head p {
    margin: 0 auto;

    max-width: 620px;

    color: var(--muted);

    font-size: clamp(1rem, 2vw, 1.15rem);
}

/* -------------------------
   IMAGE SECTIONS (home)
------------------------- */

.gallery {
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 80px;
}

.image-section {
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;
}

.gallery-image {
    display: block;

    width: min(650px, 100%);

    height: auto;

    aspect-ratio: 4 / 5;

    border-radius: 28px;

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

    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.50),
        0 0 80px rgba(111, 52, 220, 0.10);
}

.image-text {
    width: 100%;

    max-width: 650px;

    margin-top: 28px;

    text-align: center;
}

.image-text h2 {
    margin: 0 0 10px;

    font-size: clamp(1.5rem, 3vw, 2.2rem);

    line-height: 1.1;

    letter-spacing: -0.035em;
}

.image-text p {
    margin: 0 auto;

    max-width: 560px;

    color: var(--muted);

    font-size: 1rem;
}

/* -------------------------
   BUTTONS
------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 12px 22px;

    border: 1px solid transparent;
    border-radius: 100px;

    font: inherit;
    font-weight: 700;

    text-decoration: none;
    cursor: pointer;

    transition: transform 0.12s, filter 0.15s, background 0.15s;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background:
        linear-gradient(
            120deg,
            var(--purple-1),
            var(--purple-2) 55%,
            var(--purple-3)
        );

    color: #fff;

    box-shadow: 0 10px 30px rgba(111, 52, 220, 0.35);
}

.btn-primary:hover {
    filter: brightness(1.08);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-strong);
    color: var(--text);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.10);
}

.btn-danger {
    background: rgba(232, 75, 75, 0.14);
    border-color: rgba(232, 75, 75, 0.4);
    color: #ff9d9d;
}

.btn-danger:hover {
    background: rgba(232, 75, 75, 0.24);
}

.btn-small {
    padding: 7px 14px;
    font-size: 0.85rem;
}

/* -------------------------
   CARDS / FEATURE GRID
------------------------- */

.card {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.045),
        rgba(255, 255, 255, 0.015)
    );

    border: 1px solid var(--border);
    border-radius: 20px;

    padding: 24px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.feature {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.045),
        rgba(255, 255, 255, 0.015)
    );

    border: 1px solid var(--border);
    border-radius: 20px;

    padding: 24px;
}

.feature h3 {
    margin: 14px 0 8px;

    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.feature p {
    margin: 0;

    color: var(--muted);
    font-size: 0.97rem;
}

.feature-icon {
    width: 44px;
    height: 44px;

    border-radius: 12px;

    display: grid;
    place-items: center;

    font-size: 22px;

    background: rgba(135, 59, 224, 0.16);
    border: 1px solid rgba(193, 75, 232, 0.22);
}

.feature--image {
    padding: 0;
    overflow: hidden;
}

.feature-media {
    aspect-ratio: 3 / 4;

    background-color: var(--panel-2);
    background-image:
        var(--feature-image, none),
        linear-gradient(
            135deg,
            rgba(135, 59, 224, 0.35),
            rgba(53, 32, 201, 0.30)
        );
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.feature--image .feature-body {
    padding: 20px 24px 24px;
}

.feature-grid--two {
    max-width: 760px;
    margin: 0 auto;
}

/* -------------------------
   CALLOUT (important info)
------------------------- */

.callout {
    display: flex;
    align-items: flex-start;

    gap: 18px;

    padding: 22px 24px;

    border: 1px solid rgba(193, 75, 232, 0.30);
    border-radius: 20px;

    background: linear-gradient(
        180deg,
        rgba(135, 59, 224, 0.14),
        rgba(53, 32, 201, 0.06)
    );
}

.callout-icon {
    flex: 0 0 auto;

    width: 48px;
    height: 48px;

    border-radius: 14px;

    display: grid;
    place-items: center;

    font-size: 24px;

    background: rgba(135, 59, 224, 0.20);
    border: 1px solid rgba(193, 75, 232, 0.30);
}

.callout h2 {
    margin: 2px 0 6px;

    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.callout p {
    margin: 0;

    color: var(--muted);
    font-size: 0.97rem;
}

.callout a {
    color: #dca8f2;
}

.section-title {
    margin: 70px 0 22px;

    font-size: clamp(1.5rem, 3vw, 2rem);
    letter-spacing: -0.03em;
}

.section-lead {
    margin: -10px 0 26px;

    color: var(--muted);
}

/* -------------------------
   BLOG
------------------------- */

.post-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.post-card {
    display: block;

    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.045),
        rgba(255, 255, 255, 0.015)
    );

    border: 1px solid var(--border);
    border-radius: 20px;

    padding: 26px;

    text-decoration: none;
    color: inherit;

    transition: border-color 0.15s, transform 0.15s;
}

.post-card:hover {
    border-color: rgba(193, 75, 232, 0.45);
    transform: translateY(-2px);
}

.post-card h2 {
    margin: 10px 0 8px;

    font-size: clamp(1.3rem, 2.5vw, 1.7rem);
    letter-spacing: -0.03em;
}

.post-card p {
    margin: 0 0 14px;

    color: var(--muted);
}

.post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 8px 14px;

    color: var(--muted);
    font-size: 0.82rem;
}

.post-meta .dot {
    opacity: 0.5;
}

.pill {
    display: inline-flex;
    align-items: center;

    padding: 4px 11px;

    border-radius: 100px;

    background: rgba(135, 59, 224, 0.16);
    border: 1px solid rgba(193, 75, 232, 0.24);

    color: #dca8f2;

    font-size: 0.78rem;
    font-weight: 600;

    text-decoration: none;
}

.pill:hover {
    background: rgba(135, 59, 224, 0.28);
}

.category-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin: 0 0 32px;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 8px;

    margin-top: 45px;
}

.pagination a,
.pagination span {
    min-width: 42px;

    padding: 9px 14px;

    border-radius: 12px;

    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);

    color: var(--text);
    text-decoration: none;

    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
}

.pagination a:hover {
    border-color: rgba(193, 75, 232, 0.45);
}

.pagination .current {
    background:
        linear-gradient(
            120deg,
            var(--purple-1),
            var(--purple-2) 60%,
            var(--purple-3)
        );

    border-color: transparent;
}

.pagination .disabled {
    opacity: 0.4;
    pointer-events: none;
}

.empty-state {
    padding: 50px 24px;

    text-align: center;

    border: 1px dashed var(--border-strong);
    border-radius: 20px;

    color: var(--muted);
}

/* -------------------------
   ARTICLE BODY
------------------------- */

.post-header {
    max-width: 780px;
    margin: 0 auto 34px;
}

.post-header h1 {
    margin: 14px 0 16px;

    font-size: clamp(2.1rem, 4.5vw, 3.1rem);

    line-height: 1.08;
    letter-spacing: -0.04em;
}

.post-hero {
    width: 100%;

    border-radius: 20px;

    border: 1px solid var(--border);

    margin-bottom: 34px;
}

.post-body {
    max-width: 780px;
    margin: 0 auto;
}

.post-body h2 {
    margin: 42px 0 14px;

    font-size: clamp(1.5rem, 3vw, 1.9rem);
    letter-spacing: -0.03em;
}

.post-body h3 {
    margin: 32px 0 10px;

    font-size: 1.3rem;
    letter-spacing: -0.02em;
}

.post-body h4 {
    margin: 26px 0 8px;
    font-size: 1.1rem;
}

.post-body p {
    margin: 0 0 18px;

    color: #e3e3ee;
    font-size: 1.05rem;
}

.post-body a {
    color: #dca8f2;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.post-body ul,
.post-body ol {
    margin: 0 0 18px;
    padding-left: 24px;
}

.post-body li {
    margin: 0 0 8px;
    color: #e3e3ee;
}

.post-body blockquote {
    margin: 24px 0;

    padding: 6px 20px;

    border-left: 3px solid var(--purple-1);

    background: rgba(135, 59, 224, 0.08);

    color: var(--muted);
    font-style: italic;
}

.post-body code {
    padding: 2px 6px;

    border-radius: 6px;

    background: rgba(255, 255, 255, 0.08);

    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.92em;
}

.post-body pre {
    overflow-x: auto;

    margin: 0 0 22px;
    padding: 18px;

    border-radius: 14px;

    background: #0e0e18;
    border: 1px solid var(--border);
}

.post-body pre code {
    padding: 0;
    background: none;
}

.post-body hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 34px 0;
}

.post-body img {
    border-radius: 14px;
    border: 1px solid var(--border);
}

/* -------------------------
   FOOTER
------------------------- */

footer {
    position: relative;
    z-index: 1;

    margin-top: 110px;

    padding-top: 30px;

    border-top: 1px solid var(--border);

    text-align: center;

    color: #666675;

    font-size: 0.78rem;
}

.container footer {
    margin-top: 90px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    gap: 6px 18px;

    margin-bottom: 12px;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--text);
}

/* -------------------------
   ADMIN
------------------------- */

.admin-body {
    background: #0d0d15;
}

.admin-wrap {
    width: 100%;
    max-width: 980px;

    margin: 0 auto;

    padding: 34px 22px 80px;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;

    padding-bottom: 18px;
    margin-bottom: 26px;

    border-bottom: 1px solid var(--border);
}

.admin-header h1 {
    margin: 0;
    font-size: 1.4rem;
}

.admin-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-table {
    width: 100%;

    border-collapse: collapse;

    font-size: 0.94rem;
}

.admin-table th,
.admin-table td {
    padding: 12px 12px;

    text-align: left;

    border-bottom: 1px solid var(--border);

    vertical-align: top;
}

.admin-table th {
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.admin-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.status {
    display: inline-block;

    padding: 3px 10px;

    border-radius: 100px;

    font-size: 0.75rem;
    font-weight: 700;
}

.status-published {
    background: rgba(75, 200, 120, 0.16);
    color: #8ee0ab;
}

.status-draft {
    background: rgba(255, 200, 75, 0.16);
    color: #f0cf86;
}

.form-field {
    margin-bottom: 18px;
}

.form-field label {
    display: block;

    margin-bottom: 7px;

    font-weight: 600;
    font-size: 0.9rem;
}

.input,
.textarea,
.select {
    width: 100%;

    padding: 11px 13px;

    border-radius: 12px;

    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);

    font: inherit;
}

.input:focus,
.textarea:focus,
.select:focus {
    outline: none;
    border-color: var(--purple-1);
    box-shadow: 0 0 0 3px rgba(193, 75, 232, 0.18);
}

.textarea {
    min-height: 340px;
    resize: vertical;

    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.92rem;
    line-height: 1.55;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-hint {
    margin: 6px 0 0;

    color: var(--muted);
    font-size: 0.82rem;
}

.alert {
    padding: 12px 16px;

    border-radius: 12px;

    margin-bottom: 20px;

    font-size: 0.92rem;
}

.alert-error {
    background: rgba(232, 75, 75, 0.14);
    border: 1px solid rgba(232, 75, 75, 0.4);
    color: #ffb3b3;
}

.alert-success {
    background: rgba(75, 200, 120, 0.14);
    border: 1px solid rgba(75, 200, 120, 0.4);
    color: #a7e9be;
}

.login-wrap {
    min-height: 100vh;

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

    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 380px;

    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 20px;

    padding: 30px;
}

.login-card h1 {
    margin: 0 0 6px;
    font-size: 1.4rem;
    letter-spacing: -0.02em;
}

.login-card p {
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 0.9rem;
}

/* -------------------------
   MOBILE
------------------------- */

@media (max-width: 700px) {

    .page {
        padding:
            35px
            18px
            60px;
    }

    .site-header {
        padding: 0 18px;
    }

    .brand {
        margin-bottom: 50px;
    }

    .intro {
        margin-bottom: 55px;
    }

    h1 {
        font-size: clamp(3.5rem, 18vw, 5rem);
    }

    .gallery {
        gap: 65px;
    }

    .gallery-image {
        width: 100%;
        border-radius: 22px;
    }

    .image-text {
        margin-top: 22px;
    }

    .feature-grid--deck {
        display: flex;

        overflow-x: auto;

        gap: 14px;

        max-width: none;

        margin: 0 -18px;
        padding: 8px 18px 20px;

        scroll-snap-type: x mandatory;
        scroll-padding-inline: 18px;

        -webkit-overflow-scrolling: touch;

        scrollbar-width: none;
    }

    .feature-grid--deck::-webkit-scrollbar {
        display: none;
    }

    .feature-grid--deck > .feature {
        flex: 0 0 82%;

        scroll-snap-align: center;
    }

    @supports (animation-timeline: view()) {
        .feature-grid--deck > .feature {
            transform-origin: center;

            animation: feature-deck linear both;
            animation-timeline: view(inline);
            animation-range: cover 0% cover 100%;
        }
    }

    .feature-grid--deck.is-loop > .feature {
        scroll-snap-stop: always;
    }

    .feature-grid--deck.is-measuring > .feature {
        animation: none !important;
        transform: none !important;
    }

    footer {
        margin-top: 75px;
    }

    .header-inner {
        flex-wrap: nowrap;

        gap: 8px;
    }

    .site-header .brand {
        font-size: 0.9rem;
    }

    .site-header .brand-icon {
        width: 32px;
        height: 32px;

        border-radius: 9px;

        font-size: 16px;
    }

    .site-nav {
        flex-wrap: nowrap;

        gap: 2px;
    }

    .site-nav a {
        padding: 6px 8px;

        font-size: 0.82rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@keyframes feature-deck {
    0% {
        transform: perspective(1000px) rotateY(20deg) scale(0.9);
    }

    50% {
        transform: perspective(1000px) rotateY(0deg) scale(1);
    }

    100% {
        transform: perspective(1000px) rotateY(-20deg) scale(0.9);
    }
}
