/*
Theme Name: Aqsara Editorial
Theme URI: https://aqsara.com
Author: Aqsara
Author URI: https://aqsara.com
Description: A dark, editorial magazine theme with full-screen story sections, cinematic imagery, and refined typography.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aqsara
Tags: dark, magazine, editorial, custom-header, custom-menu, featured-images, full-width-template
*/

/* ============================================================
   GOOGLE FONTS
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@700&family=Newsreader:ital,opsz,wght@0,6..72,200..800;1,6..72,200..800&family=Work+Sans:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
    --color-primary: #00daf3;
    --color-on-surface: #e4e1e6;
    --color-on-surface-variant: #c4c7c7;
    --color-background: #131316;
    --color-surface: #131316;
    --color-outline: #8e9192;
    --color-white: #ffffff;

    --font-headline: 'Newsreader', serif;
    --font-story-title: 'Merriweather', serif;
    --font-body: 'Work Sans', sans-serif;
    --font-label: 'Work Sans', sans-serif;

    --section-height: 550px;
}

/* ============================================================
   BASE RESET & GLOBAL STYLES
   ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-background);
    color: var(--color-on-surface);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: var(--color-primary);
    color: #000;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    background: none;
    border: none;
    color: inherit;
    font-family: inherit;
}

/* WordPress Core Classes */
.alignwide  { margin-left: auto; margin-right: auto; }
.alignfull  { width: 100%; }
.wp-block-image img { max-width: 100%; height: auto; }
.screen-reader-text {
    clip: rect(1px,1px,1px,1px);
    position: absolute;
    height: 1px; width: 1px;
    overflow: hidden;
}

/* ============================================================
   MATERIAL SYMBOLS
   ============================================================ */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: inherit;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    vertical-align: middle;
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

/* ============================================================
   SITE HEADER
   ============================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    transition: all 0.3s ease;
}

.site-header__inner {
    padding: 24px 24px;
    display: flex;
    align-items: center;
    background: transparent;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.site-header__left {
    flex: 1;
    display: flex;
    align-items: center;
}

.site-header__center {
    flex: 0 0 auto;
}

.site-header__right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 24px;
}

/* Edition Switcher */
.edition-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-label);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 10px;
    color: var(--color-on-surface-variant);
    font-weight: 500;
    transition: color 0.3s ease;
    background: none;
    border: none;
    cursor: pointer;
}

.edition-btn:hover {
    color: var(--color-white);
}

.edition-btn__label {
    opacity: 0.6;
    display: none;
}

.edition-btn__date {
    color: var(--color-white);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 2px;
}

.edition-btn__icon {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.edition-btn:hover .edition-btn__icon {
    transform: translateY(2px);
}

/* Site Logo / Name */
.site-branding__title {
    font-size: 20px;
    font-family: var(--font-headline);
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--color-white);
    transition: opacity 0.3s;
    display: block;
}

.site-branding__title:hover {
    opacity: 0.8;
}

/* Account Icon */
.header-account-btn {
    color: var(--color-on-surface-variant);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.header-account-btn:hover {
    color: var(--color-white);
}

.header-account-btn .material-symbols-outlined {
    font-size: 20px;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.site-main {
    position: relative;
    /* Push content below fixed header - compensate on first section */
}

/* ============================================================
   STORY SECTIONS
   ============================================================ */
.story-section {
    position: relative;
    height: var(--section-height);
    width: 100%;
    display: flex;
    align-items: flex-end;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
}

/* Hover zoom effect on image */
.story-section:hover .story-section__image {
    transform: scale(1.05);
}

/* Background image wrapper */
.story-section__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.story-section__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

/* Gradient overlay */
.story-section__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--color-background) 0%, rgba(19,19,22,0.6) 50%, transparent 100%);
}

/* Content row */
.story-section__content {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 0 24px 48px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
}

/* Section number */
.story-section__number {
    width: 100%;
    margin-bottom: 16px;
}

.story-section__number span {
    font-family: var(--font-headline);
    font-style: italic;
    color: var(--color-on-surface);
    font-size: clamp(48px, 6vw, 64px);
    opacity: 0.2;
    display: block;
    line-height: 1;
}

/* Text block */
.story-section__body {
    flex-grow: 1;
    max-width: 768px;
    width: 100%;
}

.story-section__category {
    font-family: var(--font-label);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 10px;
    color: var(--color-primary);
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
}

.story-section__title {
    font-family: var(--font-story-title);
    font-size: clamp(24px, 5vw, 35px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--color-on-surface);
    margin-bottom: 16px;
}

.story-section__excerpt {
    font-family: var(--font-body);
    color: var(--color-on-surface-variant);
    font-size: 14px;
    max-width: 576px;
    margin-bottom: 24px;
    line-height: 1.65;
}

/* Read Story CTA */
.story-section__cta {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    color: var(--color-white);
    font-family: var(--font-label);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 10px;
    background: rgba(255,255,255,0.05);
    padding: 12px 24px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: background 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.story-section__cta:hover {
    background: rgba(255,255,255,0.1);
    color: var(--color-white);
}

.story-section__cta .material-symbols-outlined {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.story-section__cta:hover .material-symbols-outlined {
    transform: translateX(4px);
}

/* Image filters per section */
.story-section--grayscale .story-section__image {
    filter: grayscale(1);
    opacity: 0.6;
}

.story-section--desaturated .story-section__image {
    opacity: 0.5;
}

.story-section--grayscale-light .story-section__image {
    filter: grayscale(1);
    opacity: 0.5;
}

.story-section--luminosity .story-section__image {
    opacity: 0.6;
    mix-blend-mode: luminosity;
}

/* ============================================================
   SITE FOOTER
   ============================================================ */
.site-footer {
    width: 100%;
    padding: 64px 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    background-color: var(--color-background);
}

.site-footer__logo {
    font-size: 20px;
    font-family: var(--font-headline);
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--color-white);
}

.site-footer__copy {
    font-family: var(--font-body);
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.3em;
    color: var(--color-on-surface-variant);
    opacity: 0.4;
}

/* ============================================================
   RESPONSIVE — TABLET (≥768px)
   ============================================================ */
@media (min-width: 768px) {
    .edition-btn__label {
        display: inline;
    }
}

/* ============================================================
   RESPONSIVE — DESKTOP (≥1024px)
   ============================================================ */
@media (min-width: 1024px) {
    .site-header__inner {
        padding: 24px 48px;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .site-branding__title {
        font-size: 24px;
    }

    .edition-btn {
        font-size: 11px;
    }

    .story-section__content {
        flex-direction: row;
        padding: 0 48px 64px;
        gap: 32px;
    }

    .story-section__number {
        flex: 0 0 128px;
        width: 128px;
        margin-bottom: 0;
    }

    .story-section__excerpt {
        font-size: 16px;
    }
}

/* ============================================================
   SINGLE POST
   ============================================================ */

/* ── Hero ── */
.single-hero {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

@media (min-width: 768px) {
    .single-hero { height: 700px; }
}

.single-hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) brightness(0.5);
}

.single-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--color-background) 0%, transparent 60%);
}

.single-hero__meta {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 24px 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.single-hero__category {
    font-family: var(--font-label);
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-primary);
}

.single-hero__title {
    font-family: var(--font-headline);
    font-style: italic;
    font-size: clamp(40px, 8vw, 96px);
    line-height: 0.9;
    letter-spacing: -0.03em;
    color: #f4f4f5;
    text-align: center;
}

/* ── Article ── */
.single-article {
    max-width: 896px;
    margin: 0 auto;
    padding: 96px 32px;
}

.single-standfirst {
    font-family: var(--font-headline);
    font-size: 35px;
    color: #f4f4f5;
    line-height: 1.25;
    margin-bottom: 48px;
    max-width: 672px;
    font-weight: 400;
}

/* Drop cap on first paragraph */
.single-content.drop-cap > p:first-of-type::first-letter {
    float: left;
    font-size: 5.5rem;
    line-height: 0.8;
    padding-top: 4px;
    padding-right: 12px;
    font-family: var(--font-headline);
    color: var(--color-primary);
}

/* WP content styles */
.single-content p {
    font-family: var(--font-body);
    color: var(--color-on-surface-variant);
    font-size: 18px;
    line-height: 1.75;
    margin-bottom: 32px;
}

.single-content h2,
.single-content h3,
.single-content h4 {
    font-family: var(--font-headline);
    color: #f4f4f5;
    margin: 48px 0 16px;
    line-height: 1.2;
}

.single-content h2 { font-size: 32px; }
.single-content h3 { font-size: 26px; }

.single-content a {
    color: var(--color-primary);
    border-bottom: 1px solid rgba(0, 218, 243, 0.3);
    transition: border-color 0.2s;
}
.single-content a:hover { border-color: var(--color-primary); }

.single-content blockquote {
    margin: 64px 0;
    padding: 48px 32px;
    border-left: 1px solid rgba(0, 218, 243, 0.4);
    background: #1b1b1e;
    position: relative;
}

.single-content blockquote p {
    font-family: var(--font-headline);
    font-style: italic;
    font-size: 28px;
    color: #f4f4f5;
    line-height: 1.35;
    margin-bottom: 24px;
}

.single-content blockquote cite {
    font-family: var(--font-label);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(0, 218, 243, 0.4);
    font-style: normal;
    display: block;
}

.single-content figure {
    margin: 64px 0;
}

.single-content figure img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    mix-blend-mode: luminosity;
    transition: mix-blend-mode 0.7s;
}

.single-content figure img:hover {
    mix-blend-mode: normal;
}

.single-content figcaption {
    font-family: var(--font-label);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #7d7d7d;
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.single-content figcaption::before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 1px;
    background: rgba(0, 218, 243, 0.4);
    flex-shrink: 0;
}

/* ── Post meta footer ── */
.single-postmeta {
    margin-top: 80px;
    padding-top: 48px;
    border-top: 1px solid #444748;
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}

@media (min-width: 768px) {
    .single-postmeta { grid-template-columns: repeat(3, 1fr); }
}

.single-postmeta__label {
    display: block;
    font-family: var(--font-label);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #7d7d7d;
    margin-bottom: 8px;
}

.single-postmeta__value {
    display: block;
    font-family: var(--font-headline);
    font-style: italic;
    font-size: 20px;
    color: #f4f4f5;
}

/* ── Actions + tags ── */
.single-actions {
    margin-top: 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.single-actions__icons {
    display: flex;
    gap: 16px;
}

.single-action-icon {
    color: var(--color-primary);
    display: flex;
    align-items: center;
    transition: transform 0.2s;
}

.single-action-icon:hover { transform: scale(1.1); }

.single-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.single-tag {
    padding: 4px 16px;
    font-family: var(--font-label);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-primary);
    border: 1px solid rgba(0, 218, 243, 0.2);
    transition: background 0.2s;
}

.single-tag:hover { background: rgba(0, 218, 243, 0.1); }

/* ── Next post ── */
.single-next {
    background: #0e0e11;
    padding: 128px 40px;
}

.single-next__inner {
    max-width: 896px;
    margin: 0 auto;
    text-align: center;
}

.single-next__eyebrow {
    display: block;
    font-family: var(--font-label);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5em;
    color: var(--color-primary);
    margin-bottom: 32px;
}

.single-next__link {
    display: block;
    text-decoration: none;
}

.single-next__title {
    display: block;
    font-family: var(--font-headline);
    font-style: italic;
    font-size: clamp(28px, 5vw, 60px);
    color: #f4f4f5;
    margin-bottom: 24px;
    transition: color 0.3s;
    line-height: 1.1;
}

.single-next__link:hover .single-next__title { color: var(--color-primary); }

.single-next__sub {
    font-family: var(--font-label);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #7d7d7d;
}

/* ── Single page footer overrides ── */
.aqsara-single + footer .site-footer__logo,
.aqsara-single ~ footer .site-footer {
    background: #09090b;
}

/* ── Footer links ── */
.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 48px;
}

.site-footer__links a,
.site-footer__links li a {
    font-family: var(--font-body);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #71717a;
    transition: color 0.3s;
    text-decoration: none;
    list-style: none;
}

.site-footer__links a:hover,
.site-footer__links li a:hover { color: #f4f4f5; }

/* hide WP-injected ul/li wrappers */
.site-footer__links ul { display: contents; }
.site-footer__links li { display: contents; }
