/*
* איצאב מתכות - עיצוב דפי מאמרים
* גרסה: 1.0
*/

.articles-page {
    padding: 4rem 0 6rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.article-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.article-card-image {
    height: 200px;
    overflow: hidden;
}

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

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

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

.article-card-date {
    font-size: var(--text-xs);
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.article-card-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    color: var(--dark-color);
    margin-bottom: 1rem;
    line-height: var(--leading-tight);
}

.article-card-title a {
    color: inherit;
    text-decoration: none;
}

.article-card-title a:hover {
    color: var(--primary-color);
}

.article-card-excerpt {
    color: var(--text-muted);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    margin-bottom: 1.5rem;
    flex: 1;
}

.article-card-link {
    font-weight: 600;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.article-card-link:hover {
    color: var(--accent-color);
}

/* Single article page */
.article-page {
    padding: 4rem 0 6rem;
}

.article-breadcrumb {
    font-size: var(--text-sm);
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.article-breadcrumb a {
    color: var(--primary-color);
}

.article-breadcrumb span {
    margin: 0 0.5rem;
}

.article-header {
    margin-bottom: 3rem;
    max-width: 800px;
}

.article-header h1 {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: var(--text-muted);
    font-size: var(--text-sm);
    margin-bottom: 2rem;
}

.article-hero-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 3rem;
}

.article-content {
    max-width: var(--prose-max);
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
}

.article-content h2 {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    color: var(--dark-color);
    margin: 3rem 0 1.5rem;
}

.article-content h3 {
    font-size: var(--text-xl);
    color: var(--dark-color);
    margin: 2rem 0 1rem;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content ul,
.article-content ol {
    margin-bottom: 2rem;
    padding-inline-start: 2rem;
}

.article-content li {
    margin-bottom: 0.8rem;
}

.article-cta {
    margin-top: 4rem;
    padding: 3rem;
    background-color: var(--dark-color);
    color: var(--light-text);
    border-radius: 8px;
    text-align: center;
}

.article-cta h2 {
    color: var(--light-text);
    font-family: var(--font-display);
    margin-bottom: 1rem;
}

.article-cta p {
    color: var(--light-gray);
    margin-bottom: 2rem;
}

.page-header {
    background: linear-gradient(135deg, var(--dark-color) 0%, #343a40 100%);
    color: var(--light-text);
}

.page-header h1 {
    color: var(--light-text);
}

@media screen and (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
}
