.article-title,
.articles-section .title {
    color: var(--text-primary);
    font-family: var(--font-heading)
}

.articles-section {
    padding: 50px 30px;
    min-height: 80vh
}

.articles-section .title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
    margin-bottom: 40px
}

.article-card {
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--shadow-sm);
    overflow: hidden;
    transition: transform .3s, box-shadow .3s;
    display: flex;
    flex-direction: column
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px var(--shadow-md)
}

.article-actions .btn-delete:hover,
.article-actions .btn-edit:hover,
.btn-view:hover {
    transform: translateY(-2px);
    text-decoration: none
}

.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover
}

.article-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column
}

.article-title {
    font-size: 1.5rem;
    margin-bottom: 10px
}

.article-meta {
    font-size: .9rem;
    color: var(--text-tertiary);
    margin-bottom: 15px
}

.article-description {
    flex: 1;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 15px;
    font-family: var(--font-body)
}

.btn-view,
.btn-view:hover {
    color: var(--text-inverse)
}

.article-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border-light)
}

.article-actions .btn-delete,
.article-actions .btn-edit,
.btn-view {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: .85rem;
    text-decoration: none;
    transition: .2s;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
    width: 100%;
    box-sizing: border-box;
    min-height: 36px;
    max-height: 40px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.btn-view {
    background-color: var(--color-primary);
    grid-column: span 1
}

.btn-view:hover {
    background-color: var(--color-primary-hover);
    box-shadow: 0 4px 8px rgba(90, 103, 216, .3)
}

.article-actions .btn-edit {
    background-color: var(--color-warning);
    color: #f5f5f5;
    grid-column: span 1
}

.article-actions .btn-edit:hover {
    filter: brightness(.9);
    color: #f5f5f5;
    box-shadow: 0 4px 8px rgba(184, 134, 11, .4)
}

.delete-article-form {
    grid-column: 1/-1;
    margin: 0;
    padding: 0;
    display: block
}

.article-actions .btn-delete {
    background-color: var(--color-danger);
    color: var(--color-danger-text);
    width: 100%
}

.article-actions .btn-delete:hover {
    filter: brightness(.9);
    color: var(--color-danger-text);
    box-shadow: 0 4px 8px rgba(229, 62, 62, .3)
}

.article-actions .btn-edit:first-child:nth-last-child(2),
.article-actions .btn-edit:only-child {
    grid-column: 1/-1
}

.no-articles {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-tertiary);
    padding: 60px 20px
}

@media (max-width:768px) {
    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px
    }

    .articles-section .title {
        font-size: 2rem
    }

    .article-actions {
        grid-template-columns: 1fr
    }

    .admin-zone form,
    .btn-delete,
    .btn-edit,
    .btn-view {
        width: 100%;
        grid-column: 1/-1 !important
    }
}

@media (max-width:480px) {
    .articles-grid {
        grid-template-columns: 1fr
    }

    .articles-section {
        padding: 20px 10px
    }
}

.article-section {
    padding: 40px 20px;
    min-height: 80vh
}

.article-section .container {
    max-width: 900px;
    margin: 0 auto
}

.back-link {
    display: inline-block;
    margin-bottom: 30px;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color .3s
}

.back-link:hover {
    color: var(--color-primary-hover);
    text-decoration: none
}

.article-full {
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--shadow-sm);
    overflow: hidden
}

.article-full-image {
    width: 100%;
    max-height: 500px;
    overflow: hidden
}

.article-full-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block
}

.article-full-content {
    padding: 50px
}

.article-full-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--text-primary);
    line-height: 1.2;
    font-family: var(--font-heading)
}

.article-full-meta {
    font-size: 1rem;
    color: var(--text-tertiary);
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light)
}

.article-full-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 30px;
    word-wrap: break-word;
    font-family: var(--font-body)
}

.article-full-actions {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0
}

@media (max-width:768px) {
    .article-full-content {
        padding: 25px
    }

    .article-full-title {
        font-size: 2rem
    }

    .article-full-description {
        font-size: 1rem
    }

    .article-actions {
        grid-template-columns: 1fr
    }

    .btn-delete,
    .btn-edit,
    .btn-view {
        width: 100%;
        text-align: center
    }
}
