﻿/* =========================================================
   TEXT DETAILS
   ========================================================= */

.text-details-page {
    min-height: 100vh;
    background: #f8f5ef;
    color: #3d3933;
}


/* =========================================================
   HERO
   ========================================================= */

.text-details-hero {
    padding: 80px 20px 55px;
    text-align: center;
}

.text-details-header {
    max-width: 850px;
    margin: 0 auto;
}

.text-details-eyebrow,
.section-eyebrow {
    display: block;
    color: #9b7842;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.text-details-header h1 {
    margin: 15px auto 0;
    color: #3d3933;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.3rem, 4.5vw, 4rem);
    font-weight: 400;
    line-height: 1.2;
}

.text-details-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 28px auto 22px;
}

    .text-details-divider span {
        width: 55px;
        height: 1px;
        background: #cdbb9b;
    }

    .text-details-divider i {
        color: #9b7842;
        font-size: 0.8rem;
    }

.text-details-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: #8b8276;
    font-size: 0.85rem;
}

.meta-dot {
    color: #b6a992;
}


/* =========================================================
   MAIN
   ========================================================= */

.text-details-main {
    padding: 15px 20px 100px;
}

.text-article {
    max-width: 850px;
    margin: 0 auto;
}

/* =========================================================
   FEATURED IMAGE
   ========================================================= */
.text-featured-image-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    background: #e9e3d9;
    box-shadow: 0 20px 55px rgba(65, 50, 30, 0.10);
}

.text-featured-image {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
}

/* =========================================================
   ACTIONS
   ========================================================= */
.text-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid #ddd4c7;
}

.text-topic-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #80633a;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
}

    .text-topic-tag i {
        font-size: 0.8rem;
    }

    .text-topic-tag:hover {
        color: #513a20;
    }


/* =========================================================
   LIKE
   ========================================================= */

.text-like {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #81786c;
    font-size: 0.85rem;
}

.like-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: #72552f;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

    .like-button:hover {
        transform: scale(1.08);
    }

    .like-button.active {
        color: #72552f;
    }

.like-count {
    font-weight: 600;
}

.like-label {
    color: #92897e;
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.text-description {
    padding: 45px 15px;
    color: #4d473f;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.16rem;
    line-height: 2;
    white-space: pre-line;
}


/* =========================================================
   DOCUMENT
   ========================================================= */

.document-box {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
    padding: 22px 25px;
    border: 1px solid #ddd4c7;
    background: #fffdf9;
}

.document-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: #9b7842;
    background: #f5efe5;
    font-size: 1.1rem;
}

.document-information {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 3px;
}

    .document-information span {
        color: #9a9083;
        font-size: 0.72rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .document-information strong {
        color: #4a433a;
        font-family: Georgia, "Times New Roman", serif;
        font-size: 1rem;
        font-weight: 400;
    }

.document-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 16px;
    border: 1px solid #b9aa95;
    color: #5d5041;
    background: transparent;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

    .document-button:hover {
        border-color: #72552f;
        color: #fff;
        background: #72552f;
    }


/* =========================================================
   COMMENTS
   ========================================================= */

.comments-section {
    max-width: 850px;
    margin: 100px auto 0;
}

.comments-heading {
    margin-bottom: 35px;
}

    .comments-heading h2 {
        margin: 8px 0 15px;
        font-family: Georgia, "Times New Roman", serif;
        font-size: 2rem;
        font-weight: 400;
    }

.comments-heading-line {
    width: 40px;
    height: 1px;
    background: #b59a6e;
}


/* =========================================================
   COMMENT FORM
   ========================================================= */

.comment-form {
    margin-bottom: 45px;
    padding: 30px;
    border: 1px solid #dfd6ca;
    background: #fffdf9;
}

.comment-form-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

    .comment-form-header > i {
        color: #9b7842;
        font-size: 1.3rem;
    }

    .comment-form-header strong {
        display: block;
        margin-bottom: 4px;
        font-family: Georgia, "Times New Roman", serif;
        font-weight: 400;
    }

    .comment-form-header span {
        display: block;
        color: #8b8276;
        font-size: 0.82rem;
    }

.comment-form .form-label {
    color: #514a41;
    font-size: 0.85rem;
    font-weight: 600;
}

.comment-textarea {
    min-height: 150px;
    padding: 15px;
    border: 1px solid #dcd3c7;
    border-radius: 2px;
    background: #faf8f3;
    resize: vertical;
}

    .comment-textarea:focus {
        border-color: #9b7842;
        background: #fffdf9;
        box-shadow: 0 0 0 3px rgba(155, 120, 66, 0.10);
    }

.comment-form-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
}

.comment-submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 18px;
    border: 1px solid #72552f;
    color: #fff;
    background: #72552f;
    font-size: 0.82rem;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.2s ease;
}

    .comment-submit:hover {
        background: #5e4527;
        transform: translateY(-1px);
    }


/* =========================================================
   COMMENT LIST
   ========================================================= */

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    border-top: 1px solid #ded6ca;
}

.comment {
    display: flex;
    gap: 20px;
    padding: 25px 10px;
    border-bottom: 1px solid #ded6ca;
}

.comment-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: 1px solid #d7cbb9;
    border-radius: 50%;
    color: #9b7842;
    background: #faf7f0;
    font-size: 0.85rem;
}

.comment-content {
    flex-grow: 1;
}

.comment-text {
    margin-bottom: 10px;
    color: #514a41;
    line-height: 1.7;
    white-space: pre-line;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #968c80;
    font-size: 0.72rem;
}


/* =========================================================
   NO COMMENTS
   ========================================================= */

.no-comments {
    padding: 50px 20px;
    border-bottom: 1px solid #ded6ca;
    color: #91887d;
    text-align: center;
}

    .no-comments i {
        color: #b59a6e;
        font-size: 1.5rem;
    }

    .no-comments p {
        margin: 12px 0 0;
        font-family: Georgia, "Times New Roman", serif;
    }


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 650px) {

    .text-details-hero {
        padding: 60px 20px 40px;
    }

    .text-details-header h1 {
        font-size: 2.35rem;
    }

    .text-details-meta {
        flex-wrap: wrap;
    }

    .text-actions {
        padding: 17px 0;
    }

    .text-description {
        padding: 35px 5px;
        font-size: 1.05rem;
        line-height: 1.85;
    }

    .document-box {
        align-items: flex-start;
        flex-wrap: wrap;
        padding: 20px;
    }

    .document-information {
        min-width: calc(100% - 70px);
    }

    .document-button {
        width: 100%;
        justify-content: center;
    }

    .comments-section {
        margin-top: 70px;
    }

    .comment-form {
        padding: 25px 20px;
    }

    .comment {
        padding: 22px 0;
    }
}


@media (max-width: 400px) {

    .text-details-header h1 {
        font-size: 2rem;
    }

    .text-details-main {
        padding-left: 15px;
        padding-right: 15px;
    }

    .text-like {
        gap: 5px;
    }
}
