/* =====================================================
   POST.CSS  —  Single blog post page (post.asp)
   ===================================================== */

:root {
    --post-max: 820px;
    --accent:   #b99757;
}


/* ===================== HERO ===================== */
.post-hero {
    min-height: 48vh;
    padding: 0 60px 60px;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    position: relative;
}

.post-hero .hero-content {
    max-width: 720px;
    padding-top: 110px;
    position: relative;
    z-index: 1;
}

.post-hero h1 {
    font-size: 50px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.hero-meta {
    font-size: 13px;
    color: #bcbcbc;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 18px;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags a {
    font-size: 11px;
    letter-spacing: .8px;
    text-transform: uppercase;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    color: #d6d6d6;
    text-decoration: none;
    transition: all .2s ease;
    backdrop-filter: blur(6px);
}

.hero-tags a:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.18);
    color: #fff;
}


/* ===================== BLOG SECTION ===================== */
.blog-section {
    position: relative;
    padding: 80px 60px 120px;
}

/* Subtle blue glow behind content */
.blog-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(
        circle at 50% 0%,
        rgba(47,125,255,0.055) 0%,
        rgba(47,125,255,0.035) 30%,
        rgba(47,125,255,0.015) 60%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 0;
}

.blog-container {
    max-width: var(--post-max);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}


/* ===================== ARTICLE BODY ===================== */
.blog-article {
    font-size: 18px;
    line-height: 1.95;
    color: #ededed;
}

/* First paragraph is slightly larger / brighter */
.blog-article p:first-child {
    font-size: 20px;
    color: #fff;
}

.blog-article p {
    margin-bottom: 32px;
}

.blog-article h2 {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    margin: 52px 0 18px;
    letter-spacing: -0.3px;
}

.blog-article h3 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 40px 0 14px;
}

.blog-article a {
    color: inherit;
    border-bottom: 1px solid rgba(255,255,255,0.35);
    text-decoration: none;
    transition: border-color .2s ease;
}

.blog-article a:hover {
    border-bottom-color: #fff;
}

.blog-article blockquote {
    margin: 40px 0;
    padding: 20px 28px;
    border-left: 3px solid var(--accent);
    background: rgba(185,151,87,0.06);
    border-radius: 0 8px 8px 0;
    font-size: 19px;
    font-style: italic;
    color: #e0e0e0;
    line-height: 1.7;
}

.blog-article blockquote cite {
    display: block;
    margin-top: 12px;
    font-size: 13px;
    font-style: normal;
    color: #888;
    letter-spacing: 0.5px;
}

.blog-article ul,
.blog-article ol {
    margin: 0 0 32px 0;
    padding-left: 28px;
    color: #ededed;
}

.blog-article li {
    margin-bottom: 10px;
    line-height: 1.75;
}

.blog-article img {
    width: 100%;
    border-radius: 10px;
    margin: 36px 0;
}

.blog-article hr {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin: 52px 0;
}


/* ===================== SCROLL REVEAL ===================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity .7s cubic-bezier(.16,1,.3,1),
        transform .7s cubic-bezier(.16,1,.3,1);
    will-change: opacity, transform;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.blog-article p,
.blog-article h2,
.blog-article h3,
.blog-article blockquote,
.blog-article ul,
.blog-article ol {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity .65s cubic-bezier(.16,1,.3,1),
        transform .65s cubic-bezier(.16,1,.3,1);
    will-change: opacity, transform;
}

.blog-article p.visible,
.blog-article h2.visible,
.blog-article h3.visible,
.blog-article blockquote.visible,
.blog-article ul.visible,
.blog-article ol.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .blog-article p,
    .blog-article h2,
    .blog-article h3,
    .blog-article blockquote,
    .blog-article ul,
    .blog-article ol,
    .rel-card {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}


/* ===================== BACK LINK ===================== */
.post-back {
    margin-top: 60px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.07);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #888;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s;
}

.back-link:hover {
    color: #fff;
}

.back-link svg {
    flex-shrink: 0;
    transition: transform .2s;
}

.back-link:hover svg {
    transform: translateX(-3px);
}


/* ===================== RELATED POSTS ===================== */
.related-section {
    padding: 0 60px 80px;
}

.related-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.related-heading {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.2px;
    color: #fff;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Related card */
.rel-card {
    display: block;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform .22s ease, background .22s ease, box-shadow .22s ease;
    opacity: 0;
    transform: translateY(20px);
}

.rel-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.rel-card:hover {
    background: rgba(255,255,255,0.06);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}

.rel-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111;
}

.rel-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.9;
    transition: transform .3s ease, opacity .3s ease;
}

.rel-card:hover .rel-thumb img {
    transform: scale(1.05);
    opacity: 1;
}

.rel-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.10);
    color: #ddd;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.rel-body {
    padding: 14px 16px 18px;
}

.rel-title {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    line-height: 1.35;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rel-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 12px;
    color: #666;
    font-weight: 600;
    margin-bottom: 8px;
}

.rel-meta .dot { opacity: .5; }

.rel-excerpt {
    font-size: 13px;
    color: #888;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
    .post-hero    { padding: 0 24px 50px; min-height: 44vh; }
    .post-hero h1 { font-size: 36px; }
    .blog-section { padding: 60px 24px 100px; }
    .related-section { padding: 0 24px 60px; }
}

@media (max-width: 640px) {
    .post-hero h1       { font-size: 30px; }
    .blog-article       { font-size: 16px; }
    .blog-article p:first-child { font-size: 18px; }
    .related-grid       { grid-template-columns: 1fr; }
}
