/* ============================================================
   POST.CSS – Anythings.info Blog Article Page
   ============================================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f4f6f9;
    color: #333;
    overflow-x: hidden;
}

.post-page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.post-not-found {
    text-align: center;
    padding: 80px 20px;
}
.post-not-found h1 {
    font-size: 32px;
    color: #111;
    margin-bottom: 16px;
}
.post-not-found a {
    color: #001070;
    font-weight: 600;
    text-decoration: none;
}

.post-breadcrumb {
    padding: 14px 0 10px;
    font-size: 13px;
    color: #888;
}
.breadcrumb-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.breadcrumb-inner a {
    color: #001070;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.breadcrumb-inner a:hover {
    color: #0020c0;
    text-decoration: underline;
}
.bc-sep {
    color: #ccc;
    font-size: 10px;
}
.bc-current {
    color: #666;
    font-weight: 400;
}

.post-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
    margin-top: 10px;
}

.post-article {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    overflow: hidden;
}

.post-header {
    padding: 28px 32px 0;
}
.post-category-badge {
    display: inline-block;
    background: #001070;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 4px 12px;
    border-radius: 20px;
    text-decoration: none;
    margin-bottom: 14px;
    transition: background 0.2s;
}
.post-category-badge:hover {
    background: #0020c0;
}
.post-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.35;
    color: #111;
    margin: 0 0 14px;
    letter-spacing: -0.3px;
}
.post-description {
    font-size: 16px;
    color: #555;
    line-height: 1.7;
    margin: 0 0 18px;
    border-left: 3px solid #001070;
    padding-left: 14px;
}

.post-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    padding: 14px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}
.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
    font-weight: 500;
}
.meta-item i {
    color: #001070;
    font-size: 13px;
}

/* Read In Language Button */
.read-in-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #001070, #0033cc);
    padding: 4px 12px;
    border-radius: 20px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    box-shadow: 0 2px 8px rgba(0,16,112,0.25);
    letter-spacing: 0.2px;
}
.read-in-lang-btn i {
    font-size: 13px;
    opacity: 0.9;
}
.read-in-lang-btn:hover {
    background: linear-gradient(135deg, #0020c0, #0044ff);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0,16,112,0.35);
}

.post-featured-image {
    width: 100%;
    max-height: 480px;
    overflow: hidden;
}
.post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-body {
    padding: 28px 32px;
    font-size: 16px;
    line-height: 1.85;
    color: #333;
}
.post-body h2 {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    margin: 32px 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
}
.post-body h3 {
    font-size: 19px;
    font-weight: 700;
    color: #111;
    margin: 26px 0 12px;
}
.post-body h4 {
    font-size: 17px;
    font-weight: 600;
    color: #222;
    margin: 20px 0 10px;
}
.post-body p {
    margin: 0 0 18px;
}
.post-body a {
    color: #001070;
    text-decoration: underline;
    font-weight: 500;
}
.post-body a:hover {
    color: #0020c0;
}
.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
    display: block;
}
.post-body ul, .post-body ol {
    margin: 0 0 18px 24px;
    padding: 0;
}
.post-body li {
    margin-bottom: 8px;
    line-height: 1.7;
}
.post-body blockquote {
    margin: 24px 0;
    padding: 16px 20px;
    background: #f5f7ff;
    border-left: 4px solid #001070;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #444;
    font-size: 15px;
}
.post-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}
.post-body table th {
    background: #001070;
    color: #fff;
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
}
.post-body table td {
    padding: 9px 14px;
    border-bottom: 1px solid #eee;
    color: #333;
}
.post-body table tr:nth-child(even) td {
    background: #f9f9f9;
}
.post-body code {
    background: #f0f0f0;
    color: #c0392b;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    font-family: monospace;
}
.post-body pre {
    background: #1a1a2e;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    font-size: 13px;
    margin: 20px 0;
}
.post-body pre code {
    background: none;
    color: inherit;
    padding: 0;
    font-size: inherit;
}

.post-tags {
    padding: 20px 32px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.tags-label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.tags-label i {
    color: #001070;
}
.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tag-pill {
    display: inline-block;
    background: #f0f2ff;
    color: #001070;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    text-decoration: none;
    border: 1px solid #d0d5f5;
    transition: background 0.2s, color 0.2s;
}
.tag-pill:hover {
    background: #001070;
    color: #fff;
    border-color: #001070;
}

/* ============================================================
   FANCY SHARE BUTTONS
   ============================================================ */
.post-share {
    padding: 22px 32px 28px;
    border-top: 1px solid #f0f0f0;
    background: linear-gradient(135deg, #f8f9ff 0%, #fff 100%);
}
.share-label {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 14px;
}
.share-label i {
    color: #001070;
    font-size: 15px;
}
.share-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.22s, opacity 0.2s;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.2px;
    white-space: nowrap;
}
.share-btn i {
    font-size: 14px;
}
.share-btn span {
    font-size: 13px;
}
.share-btn:hover {
    transform: translateY(-3px) scale(1.04);
    opacity: 0.95;
}
.share-fb {
    background: linear-gradient(135deg, #1877f2, #0d5bd1);
    box-shadow: 0 4px 14px rgba(24,119,242,0.35);
}
.share-fb:hover {
    box-shadow: 0 6px 20px rgba(24,119,242,0.5);
}
.share-tw {
    background: linear-gradient(135deg, #14171a, #2d3748);
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
.share-tw:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.38);
}
.share-wa {
    background: linear-gradient(135deg, #25d366, #128c4a);
    box-shadow: 0 4px 14px rgba(37,211,102,0.35);
}
.share-wa:hover {
    box-shadow: 0 6px 20px rgba(37,211,102,0.5);
}
.share-tg {
    background: linear-gradient(135deg, #0088cc, #006aaa);
    box-shadow: 0 4px 14px rgba(0,136,204,0.35);
}
.share-tg:hover {
    box-shadow: 0 6px 20px rgba(0,136,204,0.5);
}
.share-copy {
    background: linear-gradient(135deg, #001070, #0033cc);
    box-shadow: 0 4px 14px rgba(0,16,112,0.30);
}
.share-copy:hover {
    box-shadow: 0 6px 20px rgba(0,16,112,0.45);
}
.share-rd {
    background: linear-gradient(135deg, #ff4500, #cc3700);
    box-shadow: 0 4px 14px rgba(255,69,0,0.35);
}
.share-rd:hover {
    box-shadow: 0 6px 20px rgba(255,69,0,0.5);
}

/* ============================================================
   AD SPACES
   ============================================================ */
.ad-space {
    position: relative;
    text-align: center;
}
.ad-space-inline {
    margin: 24px 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 14px rgba(0,0,0,0.06);
    padding: 16px;
}
.ad-label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.ad-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #f8f9fc;
    border: 2px dashed #dde1f0;
    border-radius: 8px;
    min-height: 90px;
    width: 100%;
    max-width: 728px;
    margin: 0 auto;
    color: #bbb;
    font-size: 13px;
    font-style: normal;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
}
.ad-placeholder i {
    font-size: 24px;
    opacity: 0.5;
}
.ad-placeholder p {
    font-size: 12px;
    color: #ccc;
    margin: 0;
    font-style: normal;
}

/* Sidebar ad */
.sidebar-ad-widget {
    padding: 0;
}
.sidebar-ad-space {
    padding: 14px 16px 16px;
    text-align: center;
}
.ad-placeholder-sidebar {
    min-height: 250px;
    max-width: 300px;
}

/* ============================================================
   MORE IN CATEGORY (RELATED POSTS)
   ============================================================ */
.related-posts-section {
    margin-top: 32px;
}
.section-heading {
    font-size: 20px;
    font-weight: 800;
    color: #111;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}
.section-heading i {
    color: #001070;
    font-size: 18px;
}
.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.related-post-card {
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    transition: transform 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
}
.related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.13);
}
.related-post-img {
    width: 100%;
    height: 170px;
    overflow: hidden;
}
.related-post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.related-post-card:hover .related-post-img img {
    transform: scale(1.07);
}
.related-post-info {
    padding: 14px 16px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.related-post-cat {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #001070;
    background: #f0f2ff;
    padding: 2px 8px;
    border-radius: 10px;
    align-self: flex-start;
}
.related-post-info h3 {
    font-size: 14px;
    font-weight: 700;
    color: #111;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.related-post-date {
    font-size: 11px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
}

/* ============================================================
   TRENDING SECTION
   ============================================================ */
.trending-section {
    margin-top: 32px;
}
.trending-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.trending-card {
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    transition: transform 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
    position: relative;
}
.trending-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.13);
}
.trending-number {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    width: 28px;
    height: 28px;
    background: #001070;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,16,112,0.4);
}
.trending-img {
    width: 100%;
    height: 140px;
    overflow: hidden;
}
.trending-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.trending-card:hover .trending-img img {
    transform: scale(1.07);
}
.trending-info {
    padding: 12px 14px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.trending-cat {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #001070;
    background: #f0f2ff;
    padding: 2px 8px;
    border-radius: 10px;
    align-self: flex-start;
}
.trending-info h3 {
    font-size: 13px;
    font-weight: 700;
    color: #111;
    line-height: 1.45;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.trending-views {
    font-size: 11px;
    color: #e05a00;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    margin-top: auto;
}
.trending-views i {
    color: #e05a00;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.post-sidebar {
    display: flex;
    flex-direction: column;
    gap: 28px;
    position: sticky;
    top: 80px;
}
.sidebar-widget {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 14px rgba(0,0,0,0.07);
    overflow: hidden;
}
.widget-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: #001070;
    padding: 13px 18px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.2px;
}
.widget-title i {
    font-size: 14px;
    opacity: 0.85;
}

/* Sidebar post list — bigger images like Farout */
.sidebar-post-list {
    padding: 0;
}
.sidebar-post-item {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}
.sidebar-post-item:last-child {
    border-bottom: none;
}
.sidebar-post-item:hover {
    background: #f5f7ff;
}
.sidebar-post-thumb {
    width: 100%;
    height: 180px;
    overflow: hidden;
    flex-shrink: 0;
}
.sidebar-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.sidebar-post-item:hover .sidebar-post-thumb img {
    transform: scale(1.06);
}
.sidebar-post-text {
    flex: 1;
    padding: 12px 14px 13px;
}
.sidebar-post-text p {
    font-size: 13px;
    font-weight: 700;
    color: #111;
    line-height: 1.5;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sidebar-post-text span {
    font-size: 11px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sidebar-categories {
    padding: 14px 16px 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.sidebar-cat-pill {
    display: inline-block;
    background: #f0f2ff;
    color: #001070;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 13px;
    border-radius: 20px;
    text-decoration: none;
    border: 1px solid #d0d5f5;
    transition: background 0.2s, color 0.2s;
}
.sidebar-cat-pill:hover,
.sidebar-cat-pill.active {
    background: #001070;
    color: #fff;
    border-color: #001070;
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
#backToTop {
    position: fixed;
    bottom: 28px;
    right: 22px;
    z-index: 999;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #001070;
    color: #fff;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 4px 16px rgba(0,16,112,0.35);
    transition: background 0.2s, transform 0.2s;
}
#backToTop:hover {
    background: #0020c0;
    transform: translateY(-3px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
    .post-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .post-sidebar {
        position: static;
    }
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .post-title {
        font-size: 24px;
    }
    .trending-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    /* Sidebar images back to side-by-side on wide mobile */
    .sidebar-post-thumb {
        height: 140px;
    }
}

@media (max-width: 600px) {
    .post-page-wrapper {
        padding: 0 12px 40px;
    }
    .post-header {
        padding: 20px 18px 0;
    }
    .post-body {
        padding: 20px 18px;
        font-size: 15px;
    }
    .post-tags {
        padding: 16px 18px;
    }
    .post-share {
        padding: 16px 18px 22px;
    }
    .post-title {
        font-size: 21px;
    }
    .post-description {
        font-size: 14px;
    }
    .post-meta-bar {
        gap: 10px;
    }
    .meta-item {
        font-size: 12px;
    }
    .post-featured-image {
        max-height: 240px;
    }
    .post-body h2 {
        font-size: 19px;
    }
    .post-body h3 {
        font-size: 17px;
    }
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    .related-post-img {
        height: 200px;
    }
    .trending-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .trending-img {
        height: 110px;
    }
    .section-heading {
        font-size: 17px;
    }
    .breadcrumb-inner {
        font-size: 12px;
    }
    .share-btn {
        padding: 8px 14px;
        font-size: 12px;
    }
    .share-btn span {
        display: none;
    }
    .share-btn {
        width: 40px;
        height: 40px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }
    .sidebar-post-thumb {
        height: 160px;
    }
}

@media (max-width: 400px) {
    .trending-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 360px) {
    .post-title {
        font-size: 18px;
    }
    .post-body {
        font-size: 14px;
        padding: 16px 14px;
    }
    .post-header {
        padding: 16px 14px 0;
    }
    .post-tags,
    .post-share {
        padding: 14px 14px;
    }
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    .sidebar-post-thumb {
        height: 130px;
    }
    .sidebar-post-text p {
        font-size: 12px;
    }
}

@media (max-width: 900px) and (orientation: landscape) {
    .post-layout {
        grid-template-columns: 1fr;
    }
    .post-sidebar {
        position: static;
    }
    .post-featured-image {
        max-height: 200px;
    }
    .post-title {
        font-size: 20px;
    }
    .trending-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .related-post-card:hover,
    .trending-card:hover,
    .sidebar-post-item:hover,
    .share-btn:hover,
    #backToTop:hover,
    .read-in-lang-btn:hover {
        transform: none;
    }
    .related-post-card:hover .related-post-img img,
    .trending-card:hover .trending-img img,
    .sidebar-post-item:hover .sidebar-post-thumb img {
        transform: none;
    }
}

@media print {
    .post-sidebar,
    .post-share,
    .post-tags,
    #backToTop,
    .post-breadcrumb,
    .ad-space,
    .sidebar-ad-widget,
    .trending-section {
        display: none;
    }
    .post-layout {
        grid-template-columns: 1fr;
    }
    .post-article {
        box-shadow: none;
        border-radius: 0;
    }
    .post-title {
        font-size: 24px;
        color: #000;
    }
    .post-body {
        font-size: 14px;
        color: #000;
    }
    .post-body a {
        color: #000;
        text-decoration: underline;
    }
}
