/* =====================================================
   ARTICLE PAGE
===================================================== */

.article-page {
    width: min(1000px, 92vw);
    margin: 0 auto;
    padding: 100px 0 100px;
}


/* =====================================================
   BACK BUTTON
===================================================== */

.back-button {
    display: inline-flex;
    align-items: center;

    margin-bottom: 35px;
    padding: 10px 16px;

    border: 1px solid var(--border);
    border-radius: 12px;

    color: var(--text-secondary);
    background: var(--surface);

    transition:
        color var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.back-button:hover {
    color: var(--text);
    border-color: var(--purple);

    box-shadow:
        0 0 20px rgba(138,123,182,.2);
}


/* =====================================================
   IMAGE
===================================================== */

.article-image {
    width: 100%;
    height: 500px;

    object-fit: cover;

    border-radius: var(--radius);
    border: 1px solid var(--border);

    background: var(--surface-solid);
    box-shadow: var(--shadow);

    margin-bottom: 35px;
}


/* =====================================================
   TITLE
===================================================== */

.article-title {
    font-size: clamp(32px, 5vw, 60px);
    line-height: 1.1;

    margin-bottom: 20px;
}


/* =====================================================
   META
===================================================== */

.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 12px;

    margin-bottom: 25px;
}

.article-category,
.article-date {
    display: inline-flex;
    align-items: center;

    padding: 7px 12px;

    border-radius: 10px;

    font-size: 13px;
}

.article-category {
    color: var(--text);
    background: rgba(138,123,182,.18);
    border: 1px solid rgba(138,123,182,.35);
}

.article-date {
    color: var(--text-secondary);
    border: 1px solid var(--border);
}


/* =====================================================
   REACTIONS
===================================================== */

.article-reactions {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 35px;
}

.article-reaction {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    min-width: 75px;
    padding: 10px 15px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: var(--surface);
    color: var(--text);

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    transition:
        border-color var(--transition),
        background var(--transition),
        box-shadow var(--transition);
}

.article-reaction:hover {
    border-color: var(--purple);

    box-shadow:
        0 0 18px rgba(138,123,182,.2);
}
.article-reaction.like-button.selected {
    border-color: #35d07f;
    background: rgba(53, 208, 127, .12);

    box-shadow:
        0 0 20px rgba(53, 208, 127, .3);
}

.article-reaction.dislike-button.selected {
    border-color: #ff4d5f;
    background: rgba(255, 77, 95, .12);

    box-shadow:
        0 0 20px rgba(255, 77, 95, .3);
}
/* =====================================================
   ARTICLE CONTENT
===================================================== */

.article-content {
    padding-top: 35px;

    border-top: 1px solid var(--border);

    color: var(--text-secondary);

    font-size: 17px;
    line-height: 1.9;

    white-space: pre-line;
}


/* =====================================================
   SHARE
===================================================== */
.share-title {
    margin-top: 20px;
    margin-bottom: 12px;

    padding-top: 22px;

    border-top: 1px solid var(--border);

    font-family: "Inter", Arial, sans-serif;
    font-size: 18px;
    font-weight: 600;

    color: var(--text-secondary);
}


.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.share-buttons button {
    padding: 10px 17px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: var(--surface);
    color: var(--text);

    font-weight: 600;

    cursor: pointer;

    transition:
        border-color var(--transition),
        background var(--transition),
        box-shadow var(--transition);
}

.share-buttons button:hover {
    border-color: var(--purple);
    background: rgba(138,123,182,.12);

    box-shadow:
        0 0 18px rgba(138,123,182,.2);
}

.article-content a {
    color: #9b7cff;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-content a:hover {
    color: #bda8ff;
    text-decoration: underline;
}
/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 700px) {

    .article-page {
        width: 92vw;
        padding: 70px 0 70px;
    }

    .article-image {
        height: 260px;
        border-radius: 18px;
        margin-bottom: 25px;
    }

    .article-title {
        font-size: 32px;
    }

    .article-content {
        font-size: 16px;
        line-height: 1.8;
    }

    .share-buttons {
        flex-direction: column;
    }

    .share-buttons button {
        width: 100%;
    }

}