/* ==========================================
   ImgFree Undress — Article Page Stylesheet
   Depends on css/style.css for variables & base
   ========================================== */

/* ==========================================
   ARTICLE BREADCRUMBS
   ========================================== */
.article-breadcrumbs {
    padding: calc(var(--navbar-height) + 20px) 0 0;
}

.article-breadcrumbs__inner {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.article-breadcrumbs__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    flex-shrink: 0;
}

.article-breadcrumbs__back:hover {
    border-color: var(--accent);
    color: var(--accent-lighter);
    background: rgba(147, 51, 234, 0.08);
}

.article-breadcrumbs__trail {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.article-breadcrumbs__trail a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.article-breadcrumbs__trail a:hover {
    color: var(--accent-lighter);
}

.article-breadcrumbs__sep {
    color: var(--border-color-light);
    user-select: none;
}

.article-breadcrumbs__current {
    color: var(--text-secondary);
    /* Truncate if too long */
    max-width: 320px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================
   ARTICLE HEADER
   ========================================== */
.article-header {
    padding: 28px 0 20px;
}

.article-header__inner {
    max-width: 900px;
    margin: 0 auto;
}

.article-header__title {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.article-header__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.article-header__date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.article-header__tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.article-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    background: var(--accent-gradient);
    color: #fff;
    letter-spacing: 0.2px;
}

/* ==========================================
   ARTICLE COVER
   ========================================== */
.article-cover {
    padding: 0 0 24px;
}

.article-cover__img {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    aspect-ratio: 16 / 8;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #2a1a4e 100%);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-cover__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article-cover__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
    height: 100%;
    width: 100%;
}

.article-cover__placeholder-icon {
    font-size: 4rem;
    opacity: 0.5;
}

/* ==========================================
   ARTICLE CTA TOP (share + action)
   ========================================== */
.article-cta-top {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 0 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.article-cta-top__label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.article-cta-top__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--accent-gradient);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.article-cta-top__action:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px var(--accent-glow);
    color: #fff;
}

.article-share {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.article-share__label {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

.article-share__btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    transition: all 0.2s;
    white-space: nowrap;
}

.article-share__btn:hover {
    transform: translateY(-1px);
    color: #fff;
}

.article-share__btn--telegram {
    border-color: rgba(38, 168, 224, 0.3);
}
.article-share__btn--telegram:hover {
    background: #26A8E0;
    border-color: #26A8E0;
    box-shadow: 0 4px 12px rgba(38, 168, 224, 0.3);
}

.article-share__btn--vk {
    border-color: rgba(0, 119, 255, 0.3);
}
.article-share__btn--vk:hover {
    background: #0077FF;
    border-color: #0077FF;
    box-shadow: 0 4px 12px rgba(0, 119, 255, 0.3);
}

.article-share__btn--x {
    border-color: rgba(255, 255, 255, 0.15);
}
.article-share__btn--x:hover {
    background: #14171A;
    border-color: #555;
}

/* ==========================================
   ARTICLE BODY (Typography)
   ========================================== */
.article-section {
    padding: 0 0 60px;
}

.article-body {
    max-width: 900px;
    margin: 0 auto;
}

.article-body h2 {
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--text-primary);
    margin-top: 48px;
    margin-bottom: 16px;
    padding-top: 8px;
    letter-spacing: -0.3px;
}

.article-body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 32px;
    margin-bottom: 12px;
    line-height: 1.35;
}

.article-body p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 18px;
}

.article-body strong {
    color: var(--text-primary);
    font-weight: 700;
}

.article-body a {
    color: var(--accent-lighter);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(192, 132, 252, 0.4);
    transition: text-decoration-color 0.2s;
}

.article-body a:hover {
    text-decoration-color: var(--accent-lighter);
}

.article-body ul,
.article-body ol {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 18px;
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.article-body ul li {
    padding-left: 24px;
    position: relative;
}

.article-body ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 11px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-gradient);
}

.article-body ol {
    counter-reset: ol-counter;
}

.article-body ol li {
    padding-left: 28px;
    position: relative;
    counter-increment: ol-counter;
}

.article-body ol li::before {
    content: counter(ol-counter) ".";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-lighter);
    font-weight: 700;
    font-size: 0.95rem;
}

.article-body blockquote {
    border-left: 3px solid var(--accent);
    padding: 16px 20px;
    margin: 24px 0;
    background: rgba(147, 51, 234, 0.06);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--text-secondary);
}

.article-body blockquote p {
    margin-bottom: 0;
}

/* Tip/note box */
.article-tip {
    background: rgba(147, 51, 234, 0.08);
    border: 1px solid rgba(147, 51, 234, 0.25);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    margin: 24px 0;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.article-tip__icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.article-tip__text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.article-tip__text strong {
    color: var(--accent-lighter);
}

/* ==========================================
   ARTICLE CTA BOTTOM
   ========================================== */
.article-cta-bottom {
    max-width: 900px;
    margin: 0 auto 60px;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.12) 0%, rgba(192, 132, 252, 0.06) 100%);
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: var(--radius-lg);
    padding: 36px 40px;
    text-align: center;
}

.article-cta-bottom__title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.25;
}

.article-cta-bottom__sub {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.article-cta-bottom__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 36px;
    background: var(--accent-gradient);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.article-cta-bottom__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px var(--accent-glow);
    color: #fff;
}

/* ==========================================
   ARTICLE FAQ
   ========================================== */
.article-faq {
    max-width: 900px;
    margin: 0 auto 60px;
}

.article-faq__title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.article-faq__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Reuse .faq__item styles from style.css */
.article-faq .faq__item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.3s;
}

.article-faq .faq__item[open] {
    border-color: var(--accent);
}

.article-faq .faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    cursor: pointer;
    font-size: 0.97rem;
    font-weight: 600;
    list-style: none;
    color: var(--text-primary);
    transition: color 0.2s;
}

.article-faq .faq__question::-webkit-details-marker {
    display: none;
}

.article-faq .faq__question:hover {
    color: var(--accent-lighter);
}

.article-faq .faq__arrow {
    flex-shrink: 0;
    transition: transform 0.3s;
    color: var(--text-muted);
}

.article-faq .faq__item[open] .faq__arrow {
    transform: rotate(180deg);
    color: var(--accent-lighter);
}

.article-faq .faq__answer {
    padding: 0 22px 18px;
}

.article-faq .faq__answer p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.93rem;
}

/* ==========================================
   RELATED ARTICLES
   ========================================== */
.article-related {
    padding: 0 0 80px;
}

.article-related__title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.article-related__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

/* Related cards reuse .blog-post-card from blog.css */
.article-related .blog-post-card {
    width: calc(50% - 12px);
    min-width: 240px;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
    .article-header__title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .article-breadcrumbs {
        padding-top: calc(var(--navbar-height) + 16px);
    }

    .article-header__title {
        font-size: 1.7rem;
    }

    .article-body h2 {
        font-size: 1.4rem;
        margin-top: 36px;
    }

    .article-body h3 {
        font-size: 1.1rem;
    }

    .article-cta-top__action {
        width: 100%;
        justify-content: center;
    }

    .article-share {
        gap: 8px;
    }

    .article-cta-bottom {
        padding: 24px 20px;
    }

    .article-cta-bottom__title {
        font-size: 1.25rem;
    }

    .article-related .blog-post-card {
        width: 100%;
    }

    .article-breadcrumbs__current {
        max-width: 180px;
    }
}

@media (max-width: 480px) {
    .article-header__title {
        font-size: 1.45rem;
    }

    .article-share__btn span {
        display: none;
    }

    .article-share__btn {
        padding: 7px 12px;
    }
}
