/* Post Page Specific Styles */

.post-content-section {
    padding: 40px 20px;
    background: transparent;
    width: 100%;
    flex: 1 0 auto;
}

.post-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: block;
}

/* Single Post Styling — soft “fog” halo on hover (desktop + mobile) */
.single-post {
    background: rgba(10, 22, 40, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(49, 130, 206, 0.3);
    width: 100%;
    transition: border-color 0.4s ease, box-shadow 0.45s ease, transform 0.35s ease;
}

.single-post:hover {
    border-color: rgba(99, 179, 237, 0.42);
    box-shadow:
        0 0 0 1px rgba(49, 130, 206, 0.15),
        0 8px 32px rgba(10, 22, 40, 0.35),
        0 0 60px rgba(49, 130, 206, 0.14),
        0 0 100px rgba(49, 130, 206, 0.06);
    transform: translateY(-2px);
}

.post-title {
    font-size: 36px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 20px;
    color: #FFFFFF;
    line-height: 1.3;
}

.post-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(49, 130, 206, 0.2);
    margin-bottom: 20px;
    color: #A0AEC0;
    font-size: 14px;
}

.post-meta i {
    margin-right: 6px;
    color: #3182CE;
}

/* 16:9 box + thin frame (softens sharp edges); hover aligned with pill buttons */
.post-featured-image {
    width: 100%;
    margin: 0 0 32px;
    padding: 0;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    position: relative;
    background: rgba(10, 22, 40, 0.45);
    border: 1px solid rgba(49, 130, 206, 0.32);
    box-sizing: border-box;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.post-featured-image:hover {
    border-color: rgba(99, 179, 237, 0.55);
    box-shadow: 0 6px 22px rgba(49, 130, 206, 0.22);
    transform: translateY(-2px);
}

.post-featured-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    max-width: none;
    transition: transform 0.35s ease;
}

.post-featured-image:hover img {
    transform: scale(1.02);
}

.post-body {
    font-size: 18px;
    line-height: 1.8;
    color: #CBD5E0;
}

.post-body p {
    margin-bottom: 1.5em;
}

.post-body h2 {
    font-size: 28px;
    margin: 1.5em 0 0.8em;
    color: #FFFFFF;
    font-weight: 600;
}

.post-body h3 {
    font-size: 24px;
    margin: 1.2em 0 0.6em;
    color: #FFFFFF;
    font-weight: 500;
}

.post-body a {
    color: #3182CE;
    text-decoration: none;
    border-bottom: 1px solid rgba(49, 130, 206, 0.3);
}

.post-body a:hover {
    color: #63B3ED;
}

/* Post Actions (Like/Dislike & Share) */
.post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
    padding-top: 20px;
    border-top: 1px solid rgba(49, 130, 206, 0.2);
}

.like-dislike {
    display: flex;
    gap: 15px;
}

.like-btn, .dislike-btn {
    background: rgba(49, 130, 206, 0.2);
    border: none;
    padding: 8px 20px;
    border-radius: 40px;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.like-btn.is-active,
.dislike-btn.is-active {
    background: rgba(49, 130, 206, 0.55);
    border: 1px solid rgba(99, 179, 237, 0.7);
}

.like-btn:disabled,
.dislike-btn:disabled {
    opacity: 0.85;
    cursor: not-allowed;
    transform: none;
}

.like-btn:hover:not(:disabled), .dislike-btn:hover:not(:disabled) {
    background: rgba(49, 130, 206, 0.4);
    transform: scale(1.02);
}

.like-btn i, .dislike-btn i {
    margin-right: 5px;
    color: #3182CE;
}

.share-buttons {
    display: flex;
    gap: 12px;
}

.share-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(49, 130, 206, 0.2);
    border-radius: 50%;
    color: #FFFFFF;
    font-size: 18px;
    transition: all 0.2s ease;
    text-decoration: none;
    border-bottom: none;
}

.share-buttons a:hover {
    background: #3182CE;
    transform: translateY(-2px);
}

/* Comments Section */
.comments-section {
    margin-top: 36px;
    margin-bottom: 0;
    padding-bottom: 36px;
}

.comments-section h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.comments-section .comment-respond {
    background: rgba(10, 22, 40, 0.55);
    border: 1px solid rgba(49, 130, 206, 0.25);
    border-radius: 14px;
    padding: 18px 20px 20px;
    box-sizing: border-box;
}

.comments-section .comment-form {
    display: grid;
    gap: 10px;
}

.comments-section .comment-form p {
    margin: 0;
}

#respond textarea,
#respond input[type="text"],
#respond input[type="email"],
.namma-comment-form textarea,
.namma-comment-form input[type="text"],
.namma-comment-form input[type="email"],
.comments-section textarea,
.comments-section #comment,
.comments-section .comment-form textarea {
    box-sizing: border-box !important;
    width: 100% !important;
    padding: 12px !important;
    border-radius: 12px !important;
    background: rgba(10, 22, 40, 0.85) !important;
    border: 1px solid rgba(49, 130, 206, 0.35) !important;
    color: #FFFFFF !important;
    font-size: 14px !important;
    resize: vertical !important;
    margin-bottom: 15px !important;
    -webkit-appearance: none;
    appearance: none;
}

.comments-section textarea,
#respond textarea,
.namma-comment-form textarea {
    min-height: 120px;
}

#respond input[type="text"],
#respond input[type="email"],
.namma-comment-form input[type="text"],
.namma-comment-form input[type="email"],
.comments-section input[type="text"],
.comments-section input[type="email"],
.comments-section .comment-form input[type="text"],
.comments-section .comment-form input[type="email"] {
    box-sizing: border-box !important;
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    background: rgba(10, 22, 40, 0.85) !important;
    border: 1px solid rgba(49, 130, 206, 0.35) !important;
    color: #FFFFFF !important;
    font-size: 14px;
    margin-bottom: 15px;
    -webkit-appearance: none;
    appearance: none;
}

#respond input:focus,
#respond textarea:focus,
.namma-comment-form input:focus,
.namma-comment-form textarea:focus,
.comments-section input:focus,
.comments-section textarea:focus {
    outline: none;
    border-color: #3182CE !important;
    box-shadow: 0 0 0 2px rgba(49, 130, 206, 0.22);
}

.comments-section .btn-primary,
#respond input[type="submit"],
.namma-comment-form input[type="submit"],
.comments-section input[type="submit"],
.comments-section .comment-form input[type="submit"] {
    background: linear-gradient(135deg, #3182CE, #2C5282);
    border: none;
    padding: 10px 24px;
    border-radius: 30px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.comments-section .btn-primary:hover,
#respond input[type="submit"]:hover,
.namma-comment-form input[type="submit"]:hover,
.comments-section input[type="submit"]:hover,
.comments-section .comment-form input[type="submit"]:hover {
    background: linear-gradient(135deg, #2C5282, #1A365D);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(49, 130, 206, 0.35);
}

.comments-list {
    margin-top: 25px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 8px;
    box-sizing: border-box;
}

.comments-list::-webkit-scrollbar {
    width: 6px;
}
.comments-list::-webkit-scrollbar-track {
    background: rgba(10, 22, 40, 0.3);
    border-radius: 4px;
}
.comments-list::-webkit-scrollbar-thumb {
    background: rgba(49, 130, 206, 0.5);
    border-radius: 4px;
}

.comments-section .children {
    margin-left: 15px;
    margin-top: 15px;
    padding-left: 15px;
    border-left: 2px solid rgba(49, 130, 206, 0.3);
    box-sizing: border-box;
}

.comment {
    box-sizing: border-box;
    width: 100%;
    margin-bottom: 5px; /* Spacing between top-level comments */
}

.comment-inner {
    background: rgba(10, 22, 40, 0.5);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 10px;
    box-sizing: border-box;
    width: 100%;
    word-break: break-word;
    overflow: hidden;
    position: relative;
}

.comment-inner strong {
    color: #3182CE;
}

.comment-inner p {
    margin: 5px 0;
    color: #CBD5E0;
    font-size: 14px;
}

.comment-inner small {
    color: #A0AEC0;
    font-size: 12px;
}

/* Sidebar */
.post-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 24px;
}

.sidebar-widget {
    background: rgba(10, 22, 40, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(49, 130, 206, 0.3);
}

.namma-poll-options .namma-poll-option:hover div > div > div {
    filter: brightness(1.1);
}

.sidebar-widget h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #FFFFFF;
    border-left: 3px solid #3182CE;
    padding-left: 12px;
}

.sidebar-widget ul {
    list-style: none;
    padding: 0;
}

.sidebar-widget ul li {
    margin-bottom: 12px;
}

.sidebar-widget ul li a {
    color: #CBD5E0;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 14px;
}

.sidebar-widget ul li a:hover {
    color: #3182CE;
}

.social-icons {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    margin-top: 10px;
}

.social-icons a {
    font-size: 24px;
    color: #CBD5E0;
    transition: all 0.2s ease;
    text-decoration: none;
    border-bottom: none;
}

.social-icons a:hover {
    color: #3182CE;
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 900px) {
    .post-title {
        font-size: 28px;
    }

    .post-body {
        font-size: 16px;
    }

    .post-body h2 {
        font-size: 24px;
    }

    .post-body h3 {
        font-size: 20px;
    }

    .single-post {
        padding: 20px;
    }
}

@media (max-width: 600px) {
    /* Match header/footer gutters (12px); generous inner padding like desktop (~30px feel) */
    .post-content-section {
        padding: 8px 12px 28px;
        width: 100%;
        max-width: none;
    }

    .post-container {
        width: 100%;
        max-width: none;
    }

    .post-title {
        font-size: 24px;
    }

    .post-meta {
        font-size: 12px;
        gap: 12px;
    }

    .post-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .single-post {
        padding: 0;
        border-radius: 14px;
        overflow: hidden;
    }

    .single-post:hover {
        transform: translateY(-1px);
        box-shadow:
            0 0 0 1px rgba(49, 130, 206, 0.18),
            0 10px 36px rgba(10, 22, 40, 0.45),
            0 0 48px rgba(49, 130, 206, 0.12);
    }

    .single-post .post-title,
    .single-post .post-meta,
    .single-post .post-body,
    .single-post .post-actions {
        padding-left: 20px;
        padding-right: 20px;
    }

    .single-post .comments-section {
        margin-top: 32px;
        margin-left: 20px;
        margin-right: 20px;
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 48px;
        width: auto;
        max-width: none;
        box-sizing: border-box;
    }

    .single-post .post-title {
        padding-top: 24px;
    }

    .post-featured-image {
        margin: 16px 20px 18px;
        width: calc(100% - 40px);
        max-width: calc(100% - 40px);
        border-radius: 12px;
        box-sizing: border-box;
    }

    .post-featured-image:hover {
        transform: translateY(-1px);
    }

    .post-body {
        font-size: 15px;
        line-height: 1.75;
    }

    .like-btn, .dislike-btn {
        padding: 7px 16px;
        font-size: 13px;
    }

    .post-container .post-sidebar {
        margin-top: 18px;
        gap: 16px;
    }

    .post-container .post-sidebar .sidebar-widget {
        border-radius: 14px;
        padding: 18px 18px 20px;
        border: 1px solid rgba(49, 130, 206, 0.28);
        background: linear-gradient(165deg, rgba(12, 28, 52, 0.92) 0%, rgba(10, 22, 40, 0.78) 100%);
        box-shadow: 0 10px 32px rgba(0, 0, 0, 0.22);
    }

    .post-container .post-sidebar .sidebar-widget h3 {
        font-size: 16px;
        margin-bottom: 14px;
        padding-left: 14px;
        border-left-width: 4px;
        letter-spacing: 0.02em;
    }

    .post-container .post-sidebar .sidebar-widget ul li {
        margin-bottom: 0;
    }

    .post-container .post-sidebar .sidebar-widget ul li a {
        display: block;
        padding: 10px 12px;
        border-radius: 10px;
        font-size: 14px;
        transition: background 0.2s ease, color 0.2s ease;
    }

    .post-container .post-sidebar .sidebar-widget ul li a:hover {
        background: rgba(49, 130, 206, 0.12);
        color: #63B3ED;
    }

    .post-container .post-sidebar .social-icons {
        flex-wrap: wrap;
        gap: 12px;
        margin-top: 12px;
    }

    .post-container .post-sidebar .social-icons a {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        background: rgba(49, 130, 206, 0.12);
        border: 1px solid rgba(49, 130, 206, 0.25);
    }

    .post-container .post-sidebar .social-icons a:hover {
        background: rgba(49, 130, 206, 0.35);
        transform: translateY(-2px);
    }

    .comments-section .comments-list {
        margin-bottom: 8px;
    }

    .comments-section .comment-respond {
        margin-bottom: 0;
        padding: 20px 20px 22px;
    }

    .single-post .comments-section h3 {
        padding-left: 0;
        padding-right: 0;
        margin-bottom: 16px;
    }

    .single-post .comments-section .comments-list {
        padding-left: 0;
        padding-right: 0;
    }

    .single-post .comments-section .comment-inner {
        padding-left: 14px;
        padding-right: 14px;
    }

    .comments-section .children {
        margin-left: 8px;
        padding-left: 10px;
    }
}

