﻿
/* Container that Fancybox uses for your AJAX content .news-post-popup  */
.fancybox__content {
    padding: 0;
    overflow: hidden;
    background: white;
}

.article-layout {
    height: 100%;
    overflow-y: auto;
    padding: 30px;
    position: relative;
}

.article-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ececec;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.badge-category,
.badge-country {
    padding: 6px 12px;
    border-radius: 20px;
    background: #f0f0f0;
}

.article-title {
    font-size: 2.6rem;
    line-height: 1.25;
    font-weight: 700;
    margin-top: 16px;
    color: #111827;
}

.article-content img,
.article-content iframe,
.article-content video {
    max-width: 100%;
    height: auto;
}

.article-content iframe {
    aspect-ratio: 16 / 9;
}

.article-content table {
    display: block;
    overflow-x: auto;
}

.article-content {
    font-size: clamp(16px,1.15vw,20px);
    line-height: 1.9;
    color: #374151;
    overflow-wrap: break-word;
    word-break: break-word;
}

    .article-content p {
        margin-bottom: 24px;
    }

/*.article-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin: 30px 0;
}

    .article-actions button {
        border: none;
        border-radius: 999px;
        padding: 10px 18px;
        background: #f3f4f6;
        cursor: pointer;
        font-weight: 600;
        transition: .2s;
    }

        .article-actions button:hover {
            background: #e5e7eb;
        }*/

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap: 16px;
}

    .gallery-grid img {
        width: 100%;
        aspect-ratio: 4/3;
        object-fit: cover;
        border-radius: 16px;
    }

        .gallery-grid img:hover {
            transform: scale(1.03);
        }

.gallery-section,
.media-section {
    margin-top: 40px;
}

    .gallery-section h3,
    .media-section h3 {
        margin-bottom: 15px;
    }

.video-section {
    margin-top: 50px;
}

.video-wrapper {
    aspect-ratio: 16/9;
    border-radius: 18px;
    overflow: hidden;
}

    .video-wrapper iframe {
        width: 100%;
        height: 100%;
    }

/*.comment-drawer {
    position: fixed;
    right: -420px;
    top: 0;
    width: 400px;
    height: 100%;
    background: #111;
    transition: .3s;
}

    .comment-drawer.open {
        right: 0;
    }*/

@media(max-width:768px) {

    .news-post-popup .fancybox__content {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
    }

    .article-layout {
        padding: 18px;
    }

    .article-content {
        font-size: 17px;
        line-height: 1.8;
    }

    .gallery-grid {
        grid-template-columns: repeat(2,1fr);
    }
    .article-action-dock {
        display: none;
    }


    /* MOBILE */
    .article-action-dock {
        display: none !important;
    }

    .mobile-action-bar {
        display: flex !important;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        height: 64px;
        z-index: 99999;
        background: #fff;
        border-top: 1px solid #e5e7eb;
        justify-content: space-around;
        align-items: center;
    }

    .mobile-action {
        background: none;
        border: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        color: #555;
    }

        .mobile-action i {
            font-size: 18px;
        }

        .mobile-action span {
            font-size: 11px;
            font-weight: 600;
        }

/*    .action-btn {
        background: none;
        border: none;
        color: white;
        font-size: 20px;
    }*/

    .floating-share-bar {
        display: none !important;
    }

    .comment-drawer {
        width: 100vw;
        right: -100vw;
    }

        .comment-drawer.open {
            right: 0;
        }
}

@media(max-width:480px) {

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}


.comment-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: -100%;
    height: 70vh;
    display: flex;
    flex-direction: column;
    background: #111;
    transition: bottom .3s ease;
    z-index: 999999;
}

    .comment-sheet.active {
        bottom: 0;
    }

.badge-pill {
    background: #f3f4f6;
    color: #555;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 13px;
}

.mobile-action-bar {
    display: none;
}

.hero-image {
    margin-top: 25px;
}

    .hero-image img {
        width: 100%;
        aspect-ratio: 16/9;
        object-fit: cover;
        border-radius: 18px;
    }

.article-media {
    margin-top: 25px;
}

    .article-media iframe,
    .article-media video {
        width: 100%;
        border-radius: 12px;
    }

.media-title {
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.twitter-tweet,
.instagram-media {
    margin: auto !important;
}
/* Floating Action Dock */

.article-action-dock {
    position: fixed;
    right: 24px;
    bottom: 90px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
    z-index: 9999;
}

.dock-btn {
    width: 58px;
    height: 58px;
    border: none;
    border-radius: 18px;
    backdrop-filter: blur(12px);
    box-shadow: 0 6px 20px rgba(0,0,0,.18);
    transition: all .25s ease;
}

    .dock-btn i {
        font-size: 20px;
    }

    .dock-btn span {
        font-size: 11px;
        font-weight: 700;
    }

    .dock-btn:hover {
        transform: translateX(-6px) scale(1.08);
        color: white;
    }


.like-btn {
    background: #1877F2;
    color: #1877F2;
}

    .like-btn:hover {
        background: #1877F2;
        color: white;
        transform: translateX(-6px) scale(1.05);
        box-shadow: 0 10px 22px rgba(24,119,242,.35);
    }

.recommend-icon {
    background: rgba(225,29,72,.15);
    color: #E11D48;
}

.recommend-icon:hover {
    background: #D71920;
    color: white;
    transform: translateX(-6px) scale(1.05);
    box-shadow: 0 10px 22px rgba(215,25,32,.35);
}


.comments-trigger {
    background: rgba(22,163,74,.15);
    color: #16A34A;
}

    .comments-trigger:hover {
        background: #16A34A;
        color: white;
        transform: translateX(-6px) scale(1.05);
        box-shadow: 0 10px 22px rgba(22,163,74,.35);
    }

.share-btn {
    background: rgba(55,65,81,.15);
    color: #374151;
}

    .share-btn:hover {
        background: #111827;
        color: white;
        transform: translateX(-6px) scale(1.05);
        box-shadow: 0 10px 22px rgba(17,24,39,.35);
    }

.dock-btn.active {
    box-shadow: 0 0 0 3px rgba(215,25,32,.18), 0 8px 25px rgba(215,25,32,.28);
    animation: pulseGlow .8s ease;
}

@keyframes pulseGlow {

    0% {
        transform: scale(.95);
    }

    60% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
    }
}

/* Animated count */
.dock-btn span {
    transition: transform .2s ease;
}

.dock-btn:hover span {
    transform: scale(1.15);
}
/*
.dock-btn span {
    animation: countPop .25s ease;
}

@keyframes countPop {

    0% {
        transform: scale(.8);
        opacity: .5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}*/
