/* ========================================
   BLOG PUBLIC — CSS Styles
   ======================================== */

/* ── BLOG HERO ── */
.blog-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12rem 2rem 6rem;
    background: radial-gradient(ellipse at top, rgba(102, 126, 234, 0.15) 0%, transparent 70%);
    position: relative;
}

.blog-hero-content { max-width: 700px; }
.blog-hero-content .hero-badge { display: inline-flex; }

.blog-hero-content h1 {
    font-size: clamp(3.5rem, 6vw, 6rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 1.5rem 0;
}

.blog-hero-content p {
    font-size: 1.8rem;
    color: var(--light-color);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ── BLOG SECTION ── */
.blog-section { padding: 4rem 0 10rem; }

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3rem;
}

/* ── BLOG GRID ── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 3rem;
}

/* ── BLOG CARD ── */
.blog-card {
    background: var(--box-color, #13132a);
    border: 1px solid var(--border-color, rgba(255,255,255,0.08));
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.blog-card-cover {
    height: 200px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    position: relative;
    overflow: hidden;
}

.blog-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.6));
}

.blog-card-tags {
    position: absolute;
    bottom: 1.2rem;
    left: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    z-index: 1;
}

.blog-tag {
    background: rgba(246, 140, 9, 0.85);
    color: #fff;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.blog-card-body {
    padding: 2rem 2.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-title {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-excerpt {
    font-size: 1.4rem;
    color: var(--light-color);
    line-height: 1.7;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color, rgba(255,255,255,0.08));
    margin-top: auto;
}

.blog-date {
    font-size: 1.2rem;
    color: var(--text-muted, #8888aa);
}

.blog-date i { margin-right: 0.5rem; }

.blog-read-more {
    font-size: 1.3rem;
    font-weight: 600;
    color: #f68c09;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ── LOADING ── */
.blog-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 6rem;
    font-size: 1.8rem;
    color: var(--light-color);
}

.blog-loading i { margin-right: 1rem; }

/* ── SINGLE POST ── */
.post-main { padding-top: 80px; }

.post-article {
    max-width: 780px;
    margin: 0 auto;
    padding: 4rem 2rem 8rem;
}

.post-hero {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

.post-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.4));
}

.post-header { margin-bottom: 4rem; }

.post-title {
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 1.5rem 0;
}

.post-meta {
    display: flex;
    gap: 2rem;
    font-size: 1.4rem;
    color: var(--light-color);
    margin-bottom: 2rem;
}

.post-meta i { margin-right: 0.5rem; color: #f68c09; }

.post-lead {
    font-size: 2rem;
    line-height: 1.6;
    color: var(--light-color);
    border-left: 4px solid #f68c09;
    padding-left: 2rem;
    margin: 2rem 0;
    font-style: italic;
}

/* ── POST CONTENT (PROSE) ── */
.prose { font-size: 1.7rem; line-height: 1.9; }

.prose h1, .prose h2, .prose h3 {
    font-weight: 700;
    margin: 3.5rem 0 1.5rem;
    line-height: 1.3;
}

.prose h1 { font-size: 3rem; }
.prose h2 { font-size: 2.5rem; color: #f68c09; }
.prose h3 { font-size: 2rem; }

.prose p { margin-bottom: 2rem; }

.prose strong { color: var(--main-color, #fff); font-weight: 700; }
.prose em { font-style: italic; opacity: 0.85; }

.prose code {
    background: rgba(102,126,234,0.15);
    color: #a78bfa;
    padding: 0.2rem 0.7rem;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

/* ── POST FOOTER ── */
.post-footer {
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color, rgba(255,255,255,0.1));
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: #f68c09;
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.btn-back:hover { gap: 1.5rem; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .blog-hero { padding: 10rem 2rem 4rem; }
    .blog-grid { grid-template-columns: 1fr; gap: 2rem; }
    .blog-container { padding: 0 1.5rem; }
    .post-article { padding: 2rem 1.5rem 6rem; }
    .post-hero { height: 250px; }
}
