/* ================================
   POST / CASE STUDY PAGE
================================ */

/* Breadcrumb */
.post-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    font-family: 'Montserrat', sans-serif;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 24px;
}

.post-breadcrumb a {
    color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-breadcrumb a:hover {
    color: #C5A059;
}

.post-breadcrumb span {
    color: rgba(255, 255, 255, 0.15);
}

/* Post Hero */
.post-hero {
    padding: 120px 0 60px;
}

.post-hero-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.post-hero h1 {
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: #fff;
    line-height: 1.15;
    margin-bottom: 20px;
}

.post-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.7;
    max-width: 680px;
    margin-bottom: 24px;
}

/* Hero Image */
.post-hero-image {
    padding: 0 0 80px;
}

.hero-img-wrap {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.07);
    max-height: 560px;
}

.hero-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Post Layout */
.post-body {
    padding: 0 0 100px;
}

.post-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 60px;
    align-items: start;
}

/* Post Content */
.post-content {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.post-section h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.post-section p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.95rem;
    line-height: 1.8;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 16px;
}

.post-section p:last-child {
    margin-bottom: 0;
}

.post-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.post-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    padding-left: 4px;
}

.post-list li::before {
    content: '→';
    color: #C5A059;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Image Grid */
.post-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.post-img-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.post-img-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.post-img-item span {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.25);
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    letter-spacing: 0.05em;
}

/* Full Width Image */
.post-full-image img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    display: block;
}

/* Stats Row */
.post-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    overflow: hidden;
}

.post-stat {
    background: rgba(255, 255, 255, 0.02);
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.stat-number {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: #C5A059;
    line-height: 1;
}

.stat-label {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.35);
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.05em;
}

/* Tech Stack */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.tech-item {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.03em;
}

/* ================================
   SIDEBAR
================================ */
.post-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 24px;
}

.sidebar-card h4 {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    color: #fff;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.sidebar-details {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-details li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    font-family: 'Montserrat', sans-serif;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-details li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-label {
    color: rgba(255, 255, 255, 0.3);
}

.detail-value {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.status-live {
    color: #4ade80 !important;
}

/* Sidebar Buttons */
.sidebar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 12px;
    cursor: pointer;
}

.sidebar-btn:hover {
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.sidebar-btn-gold {
    background: linear-gradient(135deg, #E1B32A, #C5A059);
    border-color: transparent;
    color: #0a0a0a;
    font-weight: 600;
}

.sidebar-btn-gold:hover {
    opacity: 0.9;
    color: #0a0a0a;
}

.sidebar-cta p,
.sidebar-start p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.5;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
    transition: all 0.2s ease;
}

.share-btn:hover {
    border-color: rgba(197, 160, 89, 0.3);
    color: #C5A059;
}

/* ================================
   MORE POSTS
================================ */
.more-posts {
    padding: 60px 0 100px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.more-posts-title {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 32px;
    letter-spacing: 0.05em;
}

.more-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.more-post-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: border-color 0.3s ease, transform 0.3s ease;
    display: block;
}

.more-post-card:hover {
    border-color: rgba(197, 160, 89, 0.25);
    transform: translateY(-3px);
}

.more-post-img {
    height: 160px;
    overflow: hidden;
}

.more-post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.more-post-card:hover .more-post-img img {
    transform: scale(1.05);
}

.more-post-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.more-post-info h4 {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    color: #fff;
}

.more-post-all {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(197, 160, 89, 0.04);
    border: 1px dashed rgba(197, 160, 89, 0.2);
    min-height: 220px;
}

.more-post-all:hover {
    background: rgba(197, 160, 89, 0.08);
    border-color: rgba(197, 160, 89, 0.4);
}

.more-post-all-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #C5A059;
    font-size: 0.85rem;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.05em;
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 1024px) {
    .post-layout {
        grid-template-columns: 1fr;
    }

    .post-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .post-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .post-image-grid {
        grid-template-columns: 1fr;
    }

    .more-posts-grid {
        grid-template-columns: 1fr 1fr;
    }

    .post-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 500px) {
    .more-posts-grid {
        grid-template-columns: 1fr;
    }

    .post-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}