/**
 * Blog Archive and Single Post Styling
 */

/* Blog Hero / Header */
.blog-header {
    background: radial-gradient(circle at center, rgba(201, 168, 76, 0.05) 0%, var(--bg-darker) 70%);
    padding: 160px 0 80px;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    position: relative;
}

.blog-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.2), transparent);
}

.blog-header .eyebrow {
    display: inline-block;
    color: var(--gold-light);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.blog-header h1 {
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 16px;
    background: var(--gold-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Post Grid / Archive */
.blog-main {
    padding: 80px 0;
    background: var(--bg-dark);
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.post-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(201, 168, 76, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(201, 168, 76, 0.1);
}

.post-card-image {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #1a1a1a;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.post-card-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-card-meta {
    font-size: 0.75rem;
    color: var(--gold-light);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
}

.post-card-title {
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 16px;
    font-weight: 700;
}

.post-card-title a {
    color: var(--text-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-card-title a:hover {
    color: var(--gold-light);
}

.post-card-excerpt {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.post-card-footer {
    margin-top: auto;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border: 1px solid rgba(201, 168, 76, 0.4);
    border-radius: 100px;
    color: var(--gold-light);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    background: rgba(201, 168, 76, 0.05);
}

.btn-read-more:hover {
    background: var(--gold-grad);
    color: var(--bg-dark);
    border-color: transparent;
    transform: translateX(5px);
}

/* Single Post */
.post-header {
    padding: 160px 0 100px;
    text-align: center;
    background: radial-gradient(circle at center, rgba(201, 168, 76, 0.08) 0%, var(--bg-darker) 70%);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.post-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-muted), transparent);
}

.post-category {
    display: inline-block;
    color: var(--gold-light);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 24px;
    padding: 6px 16px;
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 100px;
}

.post-header-title {
    max-width: 900px;
    margin: 0 auto 24px;
    font-size: clamp(36px, 6vw, 56px);
    line-height: 1.1;
    font-weight: 800;
}

.post-header-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    font-family: var(--font-secondary);
}

.post-container {
    max-width: 900px;
    margin: -40px auto 100px;
    padding: 80px 60px;
    background: rgba(15, 15, 18, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    position: relative;
    z-index: 10;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}

.post-content {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    font-size: 1.15rem;
}

.post-content p {
    margin-bottom: 28px;
}

.post-content h2,
.post-content h3 {
    color: var(--text-white);
    margin: 56px 0 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.post-content h2 {
    font-size: 2rem;
    background: var(--gold-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.post-content h3 {
    font-size: 1.6rem;
}

.post-content blockquote {
    margin: 48px 0;
    padding: 32px 40px;
    background: rgba(201, 168, 76, 0.05);
    border-left: 4px solid var(--gold-light);
    font-style: italic;
    font-size: 1.3rem;
    color: var(--text-white);
    border-radius: 0 16px 16px 0;
}

.post-content img {
    border-radius: 16px;
    margin: 40px 0;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.post-featured-image {
    margin-top: -120px;
    margin-bottom: 60px;
    text-align: center;
}

.post-featured-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.post-featured-image:hover img {
    transform: translateY(-10px) scale(1.02);
}

/* Pagination */
.pagination {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination .page-numbers {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--gold-dark);
    border-color: var(--gold-light);
}

/* Responsive */
@media (max-width: 768px) {
    .post-grid {
        grid-template-columns: 1fr;
    }

    .blog-header,
    .post-header {
        padding-top: 100px;
    }
}