/* =========================
   RESET / BASE
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.page-body {
    background: #f7f8fa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body.dark .page-body {
    background: #121212;
}

/* =========================
   MAIN LAYOUT
========================= */
.full-component-wrapper {
    display: flex;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    gap: 20px;
    padding: 20px;
    align-items: flex-start;
}

/* =========================
   LEFT SIDEBAR
========================= */
.component-wrapper-left {
    width: 20%;
    padding: 15px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 80px;
}

.component-wrapper-left h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.component-wrapper-left ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.component-wrapper-left ul li a {
    text-decoration: none;
    color: rgba(0,0,0,0.7);
    padding: 8px 10px;
    border-radius: 6px;
    transition: 0.2s;
}

.component-wrapper-left ul li a:hover {
    background: rgba(0,123,255,0.1);
    color: #007bff;
}

/* Dark */
body.dark .component-wrapper-left {
    background: #1e1e1e;
}

body.dark .component-wrapper-left * {
    color: #fff;
}

/* =========================
   MIDDLE CONTENT
========================= */
.component-wrapper-mid {
    width: 60%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.component-wrapper-mid p {
    color: white;
}

/* =========================
   RIGHT SIDEBAR
========================= */
.component-wrapper-right {
    width: 20%;
}

/* =========================
   POST CARD
========================= */
.post-card {
    padding: 20px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.1);
}

body.dark .post-card {
    background: #1e1e1e;
    border-color: rgba(255,255,255,0.08);
}

/* =========================
   USER INFO
========================= */
.post-card-user-name {
    display: flex;
    gap: 12px;
    align-items: center;
}

.img-container {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #007bff;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.name-date h4 {
    font-size: 14px;
    font-weight: 600;
}

.name-date p {
    font-size: 12px;
    opacity: 0.6;
}

body.dark .name-date p {
    color: rgba(255,255,255,0.7);
}

/* =========================
   DIVIDER
========================= */
.post-card hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0,0,0,0.2), transparent);
    margin: 10px 0;
}

/* =========================
   TEXT CONTENT
========================= */
.text-content-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    line-height: 1.7;
}

/* Title */
.text-content-container h3 {
    font-size: 22px;
    font-weight: 700;
    color: #111;
}

/* Paragraph */
.text-content-container p {
    font-size: 15px;
    color: rgba(0,0,0,0.75);
}

/* Lists */
.text-content-container ul,
.text-content-container ol {
    padding-left: 20px;
}

/* Code block */
.text-content-container pre {
    background: #0d1117;
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    overflow-x: auto;
}

/* Inline code */
.text-content-container code {
    background: rgba(0,0,0,0.05);
    padding: 3px 6px;
    border-radius: 4px;
}

/* Iframe */
.text-content-container iframe {
    width: 100%;
    border-radius: 10px;
    margin: 10px 0;
    border: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Dark mode text */
body.dark .text-content-container h3 {
    color: #fff;
}

body.dark .text-content-container p {
    color: rgba(255,255,255,0.8);
}

body.dark .text-content-container code {
    background: rgba(255,255,255,0.1);
}

/* =========================
   IMAGE GRID
========================= */
.post-img-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.post-img-container img,
.last-img-container {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    overflow: hidden;
}

/* Hover */
.post-img-container img {
    transition: 0.4s;
}

.post-img-container img:hover {
    transform: scale(1.08);
}

/* Overlay */
.last-img-container {
    position: relative;
}

.all-image-count {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
}

.all-image-count:hover {
    background: rgba(0,0,0,0.7);
}

.all-image-count h2 {
    color: #fff;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 1024px) {
    .full-component-wrapper {
        flex-direction: column;
    }

    .component-wrapper-mid {
        width: 100%;
    }

    .component-wrapper-left,
    .component-wrapper-right {
        width: 100%;
        position: static;
    }
}

@media (max-width: 600px) {
    .text-content-container h3 {
        font-size: 18px;
    }

    .post-img-container img,
    .last-img-container {
        height: 140px;
    }
}