/* =========================================
   ARTICLE LIST VIEW
   ========================================= */
.article-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 2.5rem;
}

.article-card {
    background: white;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border-left: 4px solid transparent;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-left-color: var(--accent);
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.article-meta .date {
    color: var(--text-light);
}

.article-meta .category {
    color: var(--accent);
    font-weight: 500;
}

.article-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-card .excerpt {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.read-article-btn {
    background: none;
    border: none;
    color: var(--accent);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    font-family: 'Work Sans', sans-serif;
}

.read-article-btn:hover {
    color: var(--primary);
    transform: translateX(5px);
}

/* =========================================
   FULL ARTICLE VIEW
   ========================================= */
.article-full {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--light);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    overflow-y: auto;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.article-full.active {
    opacity: 1;
    visibility: visible;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem 4rem;
}

.article-content h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.article-content .article-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--mid);
}

.article-content .article-meta {
    margin-bottom: 1rem;
}

.article-content p {
    color: var(--text);
    line-height: 1.9;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.article-content h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: var(--primary);
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.article-content h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: var(--secondary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-content ul,
.article-content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.article-content li {
    margin-bottom: 0.5rem;
    color: var(--text);
}

.article-content code {
    background: var(--mid);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.article-content pre {
    background: var(--mid);
    padding: 1.5rem;
    border-radius: 4px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.article-content pre code {
    background: none;
    padding: 0;
}

/* =========================================
   CLOSE BUTTON
   ========================================= */
.close-article-btn {
    position: fixed;
    top: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: transparent;
    border: none;
    z-index: 10001;
    cursor: pointer;
    padding: 0;
}

.close-article-btn svg {
    width: 100%;
    height: 100%;
}

.close-article-btn .close-circle {
    stroke: var(--primary);
    stroke-width: 2;
    fill: none;
    transition: all 0.3s ease;
}

.close-article-btn .close-x {
    stroke: var(--primary);
    stroke-width: 2;
    fill: none;
    transition: all 0.3s ease;
}

.close-article-btn:hover .close-circle,
.close-article-btn:hover .close-x {
    stroke: var(--accent);
    stroke-width: 3;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    .article-list {
        grid-template-columns: 1fr;
    }

    .article-content {
        padding: 6rem 1.5rem 3rem;
    }

    .article-content h1 {
        font-size: 2.2rem;
    }

    .close-article-btn {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }
}