/* Articles Page Styles */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #6A1B9A 0%, #26C6DA 100%);
    color: white;
    padding: 20px 0 20px;
    text-align: center;
    margin-top: 70px;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Articles Content */
.articles-content {
    padding: 60px 0;
    background: #f8f9fa;
}

/* Featured Article */
.featured-article {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 60px;
    transition: transform 0.3s ease;
}

.featured-article:hover {
    transform: translateY(-5px);
}

.featured-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    min-height: 400px;
}

.featured-image {
    background: #f8f9fa;
}

.featured-image svg {
    width: 100%;
    height: 400px;
    display: block;
}

.featured-info {
    padding: 40px;
}

.article-category {
    display: inline-block;
    background: linear-gradient(135deg, #6A1B9A, #26C6DA);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.featured-info h2 {
    color: #6A1B9A;
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.article-excerpt {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.article-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    font-size: 0.9rem;
    color: #888;
}

.read-time,
.article-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.read-time::before {
    content: "⏱";
    font-size: 1rem;
}

.article-date::before {
    content: "📅";
    font-size: 1rem;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.article-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.article-image {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.article-image svg {
    width: 100%;
    height: 200px;
    display: block;
}

.article-info {
    padding: 25px;
}

.article-info .article-category {
    font-size: 0.75rem;
    padding: 4px 12px;
    margin-bottom: 12px;
}

.article-info h3 {
    color: #6A1B9A;
    font-size: 1.3rem;
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.article-info p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.article-info .article-meta {
    margin-bottom: 20px;
    font-size: 0.8rem;
    gap: 15px;
}

.btn-secondary {
    background: transparent;
    color: #6A1B9A;
    border: 2px solid #6A1B9A;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-secondary:hover {
    background: #6A1B9A;
    color: white;
    transform: translateY(-2px);
}

/* Categories Section */
.categories-section {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.categories-section h3 {
    color: #6A1B9A;
    font-size: 1.5rem;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.category-item {
    background: #f8f9fa;
    padding: 20px 15px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-item:hover {
    background: #6A1B9A;
    color: white;
    transform: translateY(-3px);
}

.category-item.active {
    background: #6A1B9A;
    color: white;
    border-color: #26C6DA;
}

.category-item h4 {
    margin: 0 0 8px 0;
    font-size: 1rem;
    font-weight: 600;
}

.category-count {
    background: #26C6DA;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.category-item:hover .category-count {
    background: white;
    color: #6A1B9A;
}

/* Article Modal */
.article-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.article-modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 15px;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    margin: 20px;
}

.article-modal.show .modal-content {
    transform: scale(1);
}

.modal-header {
    background: linear-gradient(135deg, #6A1B9A 0%, #26C6DA 100%);
    color: white;
    padding: 25px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 30px;
    line-height: 1.7;
    color: #333;
}

.modal-body h3 {
    color: #6A1B9A;
    margin: 25px 0 15px 0;
    font-size: 1.3rem;
}

.modal-body h4 {
    color: #26C6DA;
    margin: 20px 0 10px 0;
    font-size: 1.1rem;
}

.modal-body p {
    margin-bottom: 15px;
    text-align: justify;
}

.modal-body ul {
    margin: 15px 0;
    padding-left: 25px;
}

.modal-body li {
    margin-bottom: 8px;
}

.modal-body strong {
    color: #6A1B9A;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header {
        padding: 60px 0 40px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .featured-content {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .featured-image svg {
        height: 250px;
    }
    
    .featured-info {
        padding: 25px;
    }
    
    .featured-info h2 {
        font-size: 1.5rem;
    }
    
    .article-excerpt {
        font-size: 1rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .article-card {
        margin: 0 10px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .category-item {
        padding: 15px 10px;
    }
    
    .modal-content {
        margin: 10px;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .articles-content {
        padding: 40px 0;
    }
    
    .featured-article {
        margin-bottom: 40px;
        border-radius: 15px;
    }
    
    .featured-info {
        padding: 20px;
    }
    
    .featured-info h2 {
        font-size: 1.3rem;
    }
    
    .article-info {
        padding: 20px;
    }
    
    .article-info h3 {
        font-size: 1.1rem;
    }
    
    .categories-section {
        padding: 25px 20px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 8px;
    }
}