/* =====================================================
   KONTEN LIST - INSTAGRAM STYLE FEED CARD
   Loker Jogja
===================================================== */

:root {
    --feed-bg: #f3f4f6;
    --feed-card: #ffffff;
    --feed-text: #111827;
    --feed-muted: #6b7280;
    --feed-border: #e5e7eb;
    --feed-soft: #f9fafb;
    --feed-primary: #111827;
    --feed-radius: 18px;
    --feed-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

/* =====================================================
   AREA UTAMA
===================================================== */

.front-page-main {
    width: 100%;
    background: var(--feed-bg);
    padding: 28px 16px 46px;
    box-sizing: border-box;
}

#post-container.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    box-sizing: border-box;
}

/* Untuk dashboard */
.content-area-cv {
    background: var(--feed-bg);
}

.content-area-cv .entry-header-cv {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 16px 4px;
}

.content-area-cv .entry-title {
    margin: 0;
    font-size: 28px;
    font-weight: 900;
    color: var(--feed-text);
}

.content-area-cv .entry-content {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 16px 18px;
    color: var(--feed-muted);
}

/* =====================================================
   CARD UTAMA
===================================================== */

.post-thumbnail-blog,
.video-post.post-thumbnail-blog {
    width: 100%;
    background: var(--feed-card);
    border: 1px solid var(--feed-border);
    border-radius: var(--feed-radius);
    overflow: hidden;
    box-shadow: var(--feed-shadow);
    position: relative;
    box-sizing: border-box;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.post-thumbnail-blog:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.12);
    border-color: #d1d5db;
}

/* =====================================================
   HEADER CARD / AUTHOR
===================================================== */

.author-info {
    min-height: 58px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border-bottom: 1px solid var(--feed-border);
    position: relative;
    box-sizing: border-box;
}

/* Avatar sederhana */
.author-info::before {
    content: "LJ";
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #111827, #4b5563);
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.3px;
}

.author-name {
    max-width: 58%;
    font-size: 14px;
    font-weight: 800;
    color: var(--feed-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.waktu-posting-front {
    margin-left: auto;
    font-size: 12px;
    font-weight: 600;
    color: var(--feed-muted);
    white-space: nowrap;
}

/* =====================================================
   MEDIA / THUMBNAIL
===================================================== */

.thumb-home-blog {
    width: 100%;
    position: relative;
    background: #111827;
    overflow: hidden;
}

.thumb-home-blog,
.swiper,
.thumb-swiper,
.swiper-wrapper,
.swiper-slide,
.slide-inner-blog {
    min-height: 0;
}

.swiper {
    width: 100%;
    height: auto;
    border-radius: 0;
    overflow: hidden;
}

.swiper-slide {
    width: 100%;
    height: auto;
}

.slide-inner-blog {
    width: 100%;
    aspect-ratio: 4 / 5;
    position: relative;
    overflow: hidden;
    background: #111827;
}

.thumb-home {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 5;
    display: block;
    object-fit: cover;
    object-position: center;
    background: #111827;
    transition: transform 0.35s ease;
}

.post-thumbnail-blog:hover .thumb-home {
    transform: scale(1.025);
}

/* Gradient overlay */
.slide-inner-blog::after,
.thumb-home-blog::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 52%;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.78),
        rgba(0, 0, 0, 0.38),
        rgba(0, 0, 0, 0)
    );
    pointer-events: none;
}

/* Untuk video jangan ditimpa overlay berlebihan */
.thumb-home-blog.video-post::after {
    display: none;
}

/* =====================================================
   TITLE & TEXT OVERLAY
===================================================== */

.post-title-blog {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 20px;
    z-index: 2;
    margin: 0;
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.18;
    letter-spacing: -0.3px;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.55);

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Judul teks di slide tambahan */
.judul-teksquot {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 132px;
    z-index: 2;
    margin: 0;
    color: #ffffff;
    font-size: 19px;
    font-weight: 900;
    line-height: 1.25;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.55);

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Caption slide tambahan */
.teksquot {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 32px;
    z-index: 2;
    margin: 0;
    padding: 12px 14px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    background: rgba(0, 0, 0, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    backdrop-filter: blur(8px);

    display: -webkit-box;
    -webkit-line-clamp: 9;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.teksquot p,
.judul-teksquot p {
    margin: 0;
}

/* =====================================================
   SWIPER NAVIGATION
===================================================== */

.swiper-button-next,
.swiper-button-prev {
    width: 34px;
    height: 34px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    color: #111827;
    z-index: 5;
    transition: 0.2s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.06);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 14px;
    font-weight: 900;
}

.swiper-button-next {
    right: 12px;
}

.swiper-button-prev {
    left: 12px;
}

.swiper-pagination {
    bottom: 8px !important;
    z-index: 5;
}

.swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.75);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    width: 18px;
    border-radius: 999px;
    background: #ffffff;
}

/* =====================================================
   VIDEO
===================================================== */

.video-responsive {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #111827;
    overflow: hidden;
}

.video-responsive iframe,
.video-responsive object,
.video-responsive embed,
.video-responsive video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* =====================================================
   ACTION BAR
===================================================== */

.post-actions-blog {
    padding: 12px 14px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #ffffff;
    border-top: 1px solid var(--feed-border);
    box-sizing: border-box;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.keterangan-deadline {
    display: flex;
    align-items: center;
}

.deadline {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 11px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

/* Tombol baca */
.read-more-button {
    min-height: 38px;
    padding: 8px 13px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: none;
    border-radius: 999px;
    background: #111827;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    transition: 0.2s ease;
}

.read-more-button:hover {
    background: #000000;
    transform: translateY(-1px);
}

.read-more-button img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
    transform: rotate(-90deg);
}

.view-count-front {
    font-size: 12px;
    font-weight: 800;
    color: #ffffff;
    opacity: 0.9;
}

/* =====================================================
   CONTENT FULL / EXPAND
===================================================== */

.content-full {
    display: none;
    padding: 0 16px 18px;
    background: #ffffff;
    color: #374151;
    font-size: 14px;
    line-height: 1.7;
    border-top: 1px solid var(--feed-border);
}

.content-full.active,
.content-full.show,
.content-full.open {
    display: block;
    transform: none;
}

.read-more-button.is-open img {
    transform: rotate(90deg);
}

.content-full p {
    margin: 14px 0;
}

.content-full img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
}

.lamar {
    margin-top: 14px;
    min-height: 42px;
    padding: 10px 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    background: #111827;
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    transition: 0.2s ease;
}

.lamar:hover {
    color: #ffffff;
    background: #000000;
    transform: translateY(-1px);
}

.lamar img {
    width: 17px;
    height: 17px;
    filter: brightness(0) invert(1);
    transform: rotate(-90deg);
}

/* =====================================================
   LOAD MORE
===================================================== */

.tombol-load {
    width: 100%;
    max-width: 1180px;
    margin: 28px auto 0;
    padding: 0 16px;
    text-align: center;
    box-sizing: border-box;
}

.load-more {
    min-height: 46px;
    padding: 12px 24px;
    border: none;
    border-radius: 999px;
    background: #111827;
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.18);
    transition: 0.2s ease;
}

.load-more:hover {
    background: #000000;
    transform: translateY(-2px);
}

/* =====================================================
   SCREENSHOT LOADING
===================================================== */

#screenshot-loading-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.96);
    z-index: 999999;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#screenshot-loading-overlay .loader-content {
    text-align: center;
    color: #111827;
    font-size: 15px;
    font-weight: 800;
    animation: pop 0.6s ease-in-out infinite alternate;
}

#screenshot-loading-overlay .loader-icon {
    width: 86px;
    height: auto;
    opacity: 0.95;
}

@keyframes pop {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.06);
    }
}

/* =====================================================
   SCREENSHOT MODE
===================================================== */

.screenshot-mode {
    width: 800px !important;
    height: 994px !important;
    border-radius: 0 !important;
}

.screenshot-mode .thumb-home-blog,
.screenshot-mode .swiper,
.screenshot-mode .swiper-slide,
.screenshot-mode .slide-inner-blog,
.screenshot-mode .thumb-home {
    width: 800px !important;
    height: 994px !important;
    aspect-ratio: auto !important;
    border-radius: 0 !important;
}

.screenshot-mode .post-title-blog {
    left: 56px !important;
    right: 56px !important;
    bottom: 70px !important;
    font-size: 52px !important;
    line-height: 1.1 !important;
}

.screenshot-mode .judul-teksquot {
    left: 56px !important;
    right: 56px !important;
    bottom: 300px !important;
    font-size: 44px !important;
}

.screenshot-mode .teksquot {
    left: 56px !important;
    right: 56px !important;
    bottom: 70px !important;
    font-size: 30px !important;
    line-height: 1.35 !important;
    padding: 24px 28px !important;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1024px) {
    #post-container.container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }
}

@media (max-width: 700px) {
    .front-page-main {
        padding: 16px 10px 36px;
    }

    #post-container.container {
        grid-template-columns: 1fr;
        max-width: 480px;
        gap: 18px;
    }

    .post-thumbnail-blog {
        border-radius: 18px;
    }

    .post-title-blog {
        font-size: 21px;
        left: 16px;
        right: 16px;
        bottom: 18px;
    }

    .judul-teksquot {
        font-size: 18px;
        left: 16px;
        right: 16px;
        bottom: 126px;
    }

    .teksquot {
        left: 16px;
        right: 16px;
        font-size: 13.5px;
    }

    .post-actions-blog {
        padding: 11px 12px 13px;
    }

    .deadline {
        max-width: 130px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (max-width: 420px) {
    .author-info {
        min-height: 54px;
        padding: 10px 12px;
    }

    .author-info::before {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
        font-size: 11px;
    }

    .author-name {
        font-size: 13px;
    }

    .waktu-posting-front {
        font-size: 11px;
    }

    .post-title-blog {
        font-size: 19px;
    }

    .post-actions-blog {
        gap: 8px;
    }

    .action-item {
        gap: 7px;
    }

    .share-icon-front {
        width: 36px;
        height: 36px;
    }

    .read-more-button {
        min-height: 36px;
        padding: 8px 11px;
        font-size: 12px;
    }

    .deadline {
        font-size: 11px;
        min-height: 28px;
        padding: 5px 9px;
    }
}