/* =========================================================
   blog/articles.css
   Unified styles for all blog article pages on moserab.com
   ========================================================= */

/* ── Cursor ── */
*, *::before, *::after { cursor: none !important; }

body {
    background: #061E31;
}

/* ── Article card hover ── */
.article-card {
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.article-card:hover {
    transform: translateY(-6px);
    border-color: rgba(45, 116, 154, 0.55);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}
.article-card:hover .article-image img {
    transform: scale(1.04);
}

/* ── Article hero ── */
.article-hero {
    padding: 140px 48px 60px;
    background: linear-gradient(160deg, var(--dark) 0%, #071e30 100%);
    border-bottom: 1px solid rgba(45, 116, 154, 0.15);
}
.article-hero .container {
    max-width: 1100px;
    margin: 0 auto;
}
.hero-content {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 3.5rem;
    align-items: center;
}
.hero-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}
.hero-text h1 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 1rem;
}
.article-meta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.85rem;
    color: rgba(229, 244, 250, 0.45);
    margin-bottom: 1.1rem;
    flex-wrap: wrap;
}
.article-meta a { color: var(--primary); text-decoration: none; }
.article-meta a:hover { text-decoration: underline; }
.hero-intro {
    font-size: 1.1rem;
    color: rgba(229, 244, 250, 0.7);
    line-height: 1.75;
}

/* ── Article wrapper ── */
.article-wrapper {
    max-width: 72ch;
    margin: 0 auto;
    padding: clamp(2rem, 6vh, 4rem) clamp(1rem, 4vw, 2.5rem) clamp(3rem, 10vh, 6rem);
    line-height: 1.75;
}

/* ── Typography ── */
.article-wrapper h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    margin: 3rem 0 1.25rem;
    letter-spacing: 0.3px;
}
.article-wrapper h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--white);
    margin: 2.25rem 0 1rem;
}
.article-wrapper h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    margin: 1.75rem 0 0.6rem;
}
.article-wrapper p {
    font-size: 1.05rem;
    color: rgba(229, 244, 250, 0.85);
    margin: 1rem 0;
    line-height: 1.8;
}
.article-wrapper strong, .article-wrapper b {
    font-weight: 700;
    color: var(--white);
}
.article-wrapper em, .article-wrapper i, .italic {
    font-style: italic;
    color: rgba(229, 244, 250, 0.55);
}
.article-wrapper a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s;
}
.article-wrapper a:hover { text-decoration-color: var(--primary); }

/* ── Lists ── */
.article-wrapper ul,
.article-wrapper ol {
    padding-left: 1.75rem;
    margin: 1.25rem 0;
    color: rgba(229, 244, 250, 0.85);
}
.article-wrapper li {
    font-size: 1.05rem;
    line-height: 1.75;
    margin: 0.6rem 0;
    padding-left: 0.4rem;
}
.article-wrapper li::marker { color: var(--primary); font-weight: 700; }

/* ── HR ── */
.article-wrapper hr {
    margin: 3rem 0;
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(45,116,154,0.5), transparent);
}

/* ── Blockquote ── */
.article-wrapper blockquote {
    margin: 2rem 0;
    padding: 1.25rem 1.75rem;
    border-left: 4px solid var(--primary);
    background: rgba(45, 116, 154, 0.06);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: rgba(229, 244, 250, 0.65);
}

/* ── Images ── */
.article-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2rem auto;
    border-radius: 8px;
    object-fit: cover;
}

/* ── Definition box ── */
.definition-box {
    background: linear-gradient(135deg, rgba(30, 90, 122, 0.85), rgba(45, 116, 154, 0.75));
    border: 1px solid rgba(45, 116, 154, 0.5);
    border-radius: 12px;
    padding: 1.75rem 2rem;
    margin: 2.5rem 0;
}
.definition-box h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 0.75rem;
}
.definition-box p,
.definition-box li {
    color: rgba(229, 244, 250, 0.9);
    font-size: 1rem;
    margin: 0.5rem 0;
}
.definition-box ul {
    padding-left: 1.5rem;
    color: rgba(229, 244, 250, 0.9);
}
.definition-box li::marker { color: rgba(229,244,250,0.6); }

/* ── Info box ── */
.info-box {
    margin: 2rem 0;
    padding: 1.25rem 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    background: rgba(45, 116, 154, 0.08);
}
.info-box p { color: rgba(229, 244, 250, 0.8); font-size: 1rem; margin: 0; }

/* ── FAQ ── */
.faq-container {
    background: linear-gradient(155deg, rgba(45,116,154,0.1), rgba(5,13,18,0.3));
    border: 1px solid rgba(45,116,154,0.2);
    border-radius: 16px;
    padding: 2.5rem;
    margin: 3rem 0;
}
.faq-header {
    text-align: center;
    margin-bottom: 2rem;
}
.faq-header h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.4rem;
}
.faq-header p { color: rgba(229,244,250,0.45); font-size: 0.95rem; }

.faq-item {
    border: 1px solid rgba(45, 116, 154, 0.2);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: border-color 0.2s;
}
.faq-item:hover { border-color: rgba(45, 116, 154, 0.5); }

.faq-question {
    background: linear-gradient(135deg, rgba(45,116,154,0.2), rgba(26,95,127,0.15));
    color: var(--white);
    padding: 1.1rem 1.4rem;
    cursor: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s;
    user-select: none;
}
.faq-question:hover { background: linear-gradient(135deg, rgba(45,116,154,0.32), rgba(26,95,127,0.25)); }
.faq-question::after {
    content: '+';
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--primary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}
.faq-item.active .faq-question::after { transform: rotate(45deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.3s ease;
    background: rgba(5, 13, 18, 0.4);
    padding: 0 1.4rem;
}
.faq-item.active .faq-answer {
    max-height: 600px;
    padding: 1.25rem 1.4rem;
}
.faq-answer p {
    color: rgba(229, 244, 250, 0.75);
    font-size: 0.97rem;
    line-height: 1.75;
    margin: 0;
}

/* ── Back link ── */
.back-link {
    text-align: center;
    padding: 3rem 0;
    background: var(--dark);
}
.back-link .container { max-width: 1100px; margin: 0 auto; }
.back-link a {
    display: inline-block;
    border: 1.5px solid rgba(45,116,154,0.5);
    color: rgba(229,244,250,0.7);
    padding: 0.7rem 1.75rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: none;
}
.back-link a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* ── Tables ── */
.article-wrapper table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
    font-size: 0.95rem;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    overflow: hidden;
}
.article-wrapper thead { background: rgba(45,116,154,0.15); }
.article-wrapper th {
    padding: 0.9rem 1rem;
    text-align: left;
    font-weight: 700;
    color: var(--primary);
    border-bottom: 2px solid rgba(45,116,154,0.4);
}
.article-wrapper td {
    padding: 0.8rem 1rem;
    color: rgba(229,244,250,0.8);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.table-wrapper { overflow-x: auto; margin: 2rem 0; }
.table-wrapper table { margin: 0; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .article-hero { padding: 130px 24px 50px; }
    .hero-content { grid-template-columns: 1fr; gap: 2rem; }
    .hero-image   { aspect-ratio: 16 / 9; }
}
@media (max-width: 600px) {
    .faq-container { padding: 1.5rem 1.25rem; }
    .article-wrapper { padding-left: 1.25rem; padding-right: 1.25rem; }
}