/* ==========================================================================
   CONQUEST CREATIVE AGENCY — BLOG STYLES (blog.css)
   ========================================================================== */

/* IMPORT CORE VARIABLES FROM MAIN STYLE SHEET */
@import url('style.css?v=2.1');

body {
    background-color: #080808;
    color: var(--text);
    font-family: var(--font-main);
    overflow-x: hidden;
    min-height: 100vh;
}

/* BLOG NAVIGATION ADJUSTMENTS */
.main-header {
    background: rgba(8, 8, 8, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* BLOG HERO SECTION */
.blog-hero {
    position: relative;
    padding: 180px 8% 80px;
    text-align: center;
    background: radial-gradient(circle at 50% 0%, rgba(214, 24, 63, 0.1) 0%, transparent 70%);
    overflow: hidden;
}

.blog-hero-eyebrow {
    font-family: var(--font-display);
    font-size: 14px;
    letter-spacing: 0.3em;
    color: var(--red);
    text-transform: uppercase;
    margin-bottom: 15px;
    display: inline-block;
}

.blog-hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.blog-hero-desc {
    max-width: 600px;
    margin: 0 auto;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-muted);
    line-height: 1.6;
}

/* BENTO GRID LAYOUT */
.blog-section {
    padding: 20px 8% 120px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* BLOG CARDS */
.blog-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    min-height: 380px;
}

/* FEATURED CARD STYLE (Spans 2 columns) */
.blog-card.featured {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(214, 24, 63, 0.02) 100%);
    border-color: rgba(214, 24, 63, 0.15);
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--x, 0px) var(--y, 0px), rgba(214, 24, 63, 0.06), transparent 40%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.blog-card:hover::before {
    opacity: 1;
}

/* HOVER EFFECT - Professional flat borders & shadow */
.blog-card:hover {
    border-color: var(--red);
    box-shadow: 0 15px 40px rgba(214, 24, 63, 0.1);
}

.blog-card-header {
    margin-bottom: 25px;
}

.blog-tag {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    color: var(--red);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: inline-block;
}

.blog-card-title {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--white);
    transition: color 0.3s ease;
}

.blog-card:hover .blog-card-title {
    color: var(--white);
}

.blog-card-excerpt {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 25px;
}

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

.blog-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.blog-author-avatar {
    width: 32px;
    height: 32px;
    min-width: 32px;
    max-width: 32px;
    min-height: 32px;
    max-height: 32px;
    aspect-ratio: 1 / 1;
    flex-shrink: 0; /* Prevent squishing into an oval */
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden; /* Ensure image doesn't overflow round border */
}

.blog-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-author-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.blog-read-more {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-read-more {
    color: var(--red);
    transform: translateX(4px);
}

/* ARTICLE MODAL SYSTEM */
.article-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.article-modal.active {
    display: block;
    opacity: 1;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 8, 8, 0.95);
    backdrop-filter: blur(25px);
}

.modal-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 900px;
    height: 100%;
    background: #0d0d0d;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    overflow-y: auto;
    padding: 80px 60px;
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.8);
    scrollbar-width: thin;
    scrollbar-color: rgba(214, 24, 63, 0.3) transparent;
}

.article-modal.active .modal-container {
    transform: translateX(0);
}

.close-modal {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10002;
}

.close-modal:hover {
    color: var(--white);
    background: var(--red);
    border-color: var(--red);
    transform: rotate(90deg);
}

.article-body-header {
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 30px;
}

.article-body-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--white);
    margin-top: 15px;
    margin-bottom: 25px;
}

.article-body-meta {
    display: flex;
    align-items: center;
    gap: 30px;
}

.article-content {
    font-size: 17px;
    line-height: 1.8;
    color: rgba(240, 236, 232, 0.85);
}

.article-content p {
    margin-bottom: 25px;
}

.article-content h2, .article-content h3 {
    font-family: var(--font-display);
    color: var(--white);
    margin-top: 50px;
    margin-bottom: 20px;
    font-weight: 700;
}

.article-content h2 {
    font-size: 26px;
    border-left: 3px solid var(--red);
    padding-left: 15px;
}

.article-content ul, .article-content ol {
    margin-bottom: 25px;
    padding-left: 20px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content blockquote {
    border-left: 2px solid var(--red);
    padding-left: 25px;
    margin: 40px 0;
    font-style: italic;
    font-size: 19px;
    color: var(--white);
}

/* RESPONSIVENESS */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .blog-card.featured {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .blog-card.featured {
        grid-column: span 1;
    }
    .blog-hero {
        padding: 150px 5% 50px;
    }
    .modal-container {
        padding: 60px 24px;
    }
    .close-modal {
        top: 20px;
        right: 20px;
    }
}
