/* ============================================
   Post Page Styles - mazlat-swater.com
   ============================================ */

/* --- Breadcrumb --- */
.post-breadcrumb {
    background: var(--gray-50, #f8f9fa);
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-200, #e9ecef);
}
.post-breadcrumb .mz-container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--gray-600, #6c757d);
    flex-wrap: wrap;
}
.post-breadcrumb a {
    color: var(--gray-600, #6c757d);
    text-decoration: none;
    transition: color .3s ease;
}
.post-breadcrumb a:hover {
    color: var(--primary, #efae16);
}
.post-breadcrumb .separator {
    color: var(--gray-400, #ced4da);
    font-size: 12px;
}
.post-breadcrumb .current {
    color: var(--primary, #efae16);
    font-weight: 600;
}

/* --- Post Layout --- */
.post-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    padding: 50px 0;
}

/* --- Post Main Content --- */
.post-main {
    min-width: 0;
}

/* --- Post Header --- */
.post-header {
    margin-bottom: 30px;
}
.post-header .post-category-badge {
    display: inline-block;
    padding: 5px 14px;
    background: var(--primary, #efae16);
    color: var(--dark, #1a1a1a);
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 14px;
    text-decoration: none;
    transition: background .3s ease;
}
.post-header .post-category-badge:hover {
    background: var(--primary-dark, #d49b0e);
}
.post-header h1 {
    font-size: 32px;
    color: var(--gray-800, #1a1a2e);
    line-height: 1.5;
    margin-bottom: 16px;
}
.post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    color: var(--gray-500, #adb5bd);
    font-size: 14px;
}
.post-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.post-meta-item i {
    color: var(--primary, #efae16);
    font-size: 14px;
}

/* --- Post Featured Image --- */
.post-featured-image {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
    aspect-ratio: 16 / 9;
}
.post-featured-image img,
.post-featured-image picture img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* --- Post Content --- */
.post-content {
    font-size: 17px;
    line-height: 2;
    color: var(--gray-700, #495057);
    margin-bottom: 30px;
}
.post-content p {
    margin-bottom: 18px;
}
.post-content h2,
.post-content h3,
.post-content h4 {
    color: var(--gray-800, #1a1a2e);
    margin: 28px 0 14px;
    line-height: 1.5;
}
.post-content h2 { font-size: 26px; }
.post-content h3 { font-size: 22px; }
.post-content h4 { font-size: 19px; }
.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
}
.post-content ul,
.post-content ol {
    padding-right: 24px;
    margin-bottom: 18px;
}
.post-content li {
    margin-bottom: 8px;
}
.post-content blockquote {
    border-right: 4px solid var(--primary, #efae16);
    padding: 16px 24px;
    margin: 20px 0;
    background: var(--gray-50, #f8f9fa);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--gray-600, #6c757d);
}
.post-content a {
    color: var(--primary, #efae16);
    text-decoration: underline;
}
.post-content a:hover {
    color: var(--primary-dark, #d49b0e);
}
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.post-content table th,
.post-content table td {
    padding: 12px 16px;
    border: 1px solid var(--gray-200, #e9ecef);
    text-align: right;
}
.post-content table th {
    background: var(--gray-50, #f8f9fa);
    font-weight: 600;
}

/* --- Post Tags --- */
.post-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 20px 0;
    border-top: 1px solid var(--gray-200, #e9ecef);
    border-bottom: 1px solid var(--gray-200, #e9ecef);
    margin-bottom: 30px;
}
.post-tags .tags-label {
    font-weight: 600;
    color: var(--gray-800, #1a1a2e);
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.post-tags a {
    display: inline-block;
    padding: 5px 12px;
    background: var(--gray-100, #f1f3f5);
    color: var(--gray-600, #6c757d);
    font-size: 13px;
    border-radius: 6px;
    text-decoration: none;
    transition: all .3s ease;
}
.post-tags a:hover {
    background: var(--primary, #efae16);
    color: var(--dark, #1a1a1a);
}

/* --- Share Buttons --- */
.post-share {
    margin-bottom: 30px;
}
.post-share h2 {
    font-size: 16px;
    color: var(--gray-800, #1a1a2e);
    margin-bottom: 14px;
}
.post-share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.post-share-buttons a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    color: var(--white, #fff);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all .3s ease;
}
.post-share-buttons a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.post-share-buttons .share-facebook { background: #1877f2; }
.post-share-buttons .share-twitter { background: #1da1f2; }
.post-share-buttons .share-whatsapp { background: #25d366; }
.post-share-buttons .share-pinterest { background: #e60023; }
.post-share-buttons .share-email { background: #6c757d; }
.post-share-buttons .share-twitter,
.post-share-buttons .share-whatsapp {
    color: var(--dark, #1a1a1a);
}
.post-share-buttons .share-copy {
    background: var(--gray-800, #1a1a2e);
    cursor: pointer;
}
.post-share-buttons .share-copy.copied {
    background: #28a745;
}

/* --- Photo Gallery --- */
.post-gallery {
    margin-bottom: 40px;
}
.post-gallery h2 {
    font-size: 22px;
    color: var(--gray-800, #1a1a2e);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.post-gallery h2 i {
    color: var(--primary, #efae16);
}
.post-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.post-gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    transition: all .3s ease;
}
.post-gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.post-gallery-item a {
    display: block;
    position: relative;
    aspect-ratio: 4 / 3;
}
.post-gallery-item img,
.post-gallery-item picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.post-gallery-item:hover img,
.post-gallery-item:hover picture img {
    transform: scale(1.05);
}
.post-gallery-item .gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 50%);
    opacity: 0;
    transition: opacity .3s ease;
    display: flex;
    align-items: flex-end;
    padding: 16px;
}
.post-gallery-item:hover .gallery-overlay {
    opacity: 1;
}
.post-gallery-item .gallery-caption {
    color: var(--white, #fff);
}
.post-gallery-item .gallery-caption .gallery-title {
    font-size: 15px;
    margin-bottom: 4px;
    font-weight: 700;
}
.post-gallery-item .gallery-caption p {
    font-size: 13px;
    color: rgba(255,255,255,.8);
    margin: 0;
}
.post-gallery-item .gallery-zoom {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 44px;
    height: 44px;
    background: var(--primary, #efae16);
    color: var(--dark, #1a1a1a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: transform .3s ease;
    z-index: 2;
}
.post-gallery-item:hover .gallery-zoom {
    transform: translate(-50%, -50%) scale(1);
}

/* --- Sidebar --- */
.post-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

/* --- Sidebar Widget --- */
.sidebar-widget {
    background: var(--white, #fff);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    border: 1px solid var(--gray-200, #e9ecef);
}
.sidebar-widget h2 {
    font-size: 18px;
    color: var(--gray-800, #1a1a2e);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary, #efae16);
    position: relative;
}

/* --- Latest Articles Widget --- */
.sidebar-article-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100, #f1f3f5);
    transition: all .3s ease;
}
.sidebar-article-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.sidebar-article-item:first-child {
    padding-top: 0;
}
.sidebar-article-item:hover {
    padding-right: 6px;
}
.sidebar-article-thumb {
    width: 80px;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}
.sidebar-article-thumb img,
.sidebar-article-thumb picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sidebar-article-info {
    flex: 1;
    min-width: 0;
}
.sidebar-article-info a {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800, #1a1a2e);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .3s ease;
    line-height: 1.6;
}
.sidebar-article-info a:hover {
    color: var(--primary, #efae16);
}
.sidebar-article-date {
    font-size: 12px;
    color: var(--gray-500, #adb5bd);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* --- Tag Cloud Widget --- */
.sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.sidebar-tags a {
    display: inline-block;
    padding: 5px 12px;
    background: var(--gray-50, #f8f9fa);
    color: var(--gray-600, #6c757d);
    font-size: 13px;
    border-radius: 6px;
    border: 1px solid var(--gray-200, #e9ecef);
    text-decoration: none;
    transition: all .3s ease;
}
.sidebar-tags a:hover {
    background: var(--primary, #efae16);
    color: var(--dark, #1a1a1a);
    border-color: var(--primary, #efae16);
}

/* --- Copy Protection --- */
.post-content {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .post-layout {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 0;
    }
    .post-sidebar {
        position: static;
    }
    .post-header h1 {
        font-size: 26px;
    }
    .post-content {
        font-size: 16px;
    }
}
@media (max-width: 767px) {
    .post-header h1 {
        font-size: 22px;
    }
    .post-meta {
        gap: 12px;
    }
    .post-share-buttons a span {
        display: none;
    }
    .post-share-buttons a {
        padding: 10px;
        border-radius: 50%;
    }
    .post-gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .post-content {
        font-size: 15px;
        line-height: 1.9;
    }
}
@media (max-width: 480px) {
    .post-gallery-grid {
        grid-template-columns: 1fr;
    }
}
