/* Articles Page Styles - EgyDead Theme */

/* Article Links Styling */
.article-link {
    color: #adff2f !important;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    background: linear-gradient(45deg, rgba(173, 255, 47, 0.1), rgba(173, 255, 47, 0.2));
    border: 2px solid #adff2f;
    border-radius: 25px;
    display: inline-block;
    margin: 5px 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.article-link:hover {
    background: linear-gradient(45deg, #adff2f, #7dd32f);
    color: #000 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(173, 255, 47, 0.3);
}

.article-link:before {
    content: '▶';
    margin-left: 8px;
    font-size: 0.8em;
}

.article-link:hover:before {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(173, 255, 47, 0.1) 0%, rgba(173, 255, 47, 0.05) 100%);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-title i {
    color: #adff2f;
    margin-left: 15px;
}

.page-description {
    font-size: 1.2rem;
    color: #ccc;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Filter Section */
.filter-section {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    padding: 30px 0;
    border-bottom: 1px solid rgba(173, 255, 47, 0.2);
    position: sticky;
    top: 80px;
    z-index: 100;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.filter-section.hidden {
    transform: translateY(-100%);
}

.filter-section.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    background: rgba(26, 26, 26, 0.98);
}

.filter-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
}

.filter-select {
    background: rgba(45, 45, 45, 0.9);
    border: 2px solid rgba(173, 255, 47, 0.3);
    border-radius: 8px;
    color: #fff;
    padding: 10px 15px;
    font-size: 14px;
    min-width: 150px;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #adff2f;
    box-shadow: 0 0 10px rgba(173, 255, 47, 0.3);
}

.search-articles {
    position: relative;
    flex: 1;
    max-width: 300px;
}

.search-input-articles {
    width: 100%;
    background: rgba(45, 45, 45, 0.9);
    border: 2px solid rgba(173, 255, 47, 0.3);
    border-radius: 25px;
    color: #fff;
    padding: 12px 45px 12px 20px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-input-articles:focus {
    outline: none;
    border-color: #adff2f;
    box-shadow: 0 0 15px rgba(173, 255, 47, 0.3);
}

.search-input-articles::placeholder {
    color: #999;
}

.search-icon-articles {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #adff2f;
    font-size: 16px;
}

/* Featured Article */
.featured-article {
    padding: 60px 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.featured-card {
    background: rgba(45, 45, 45, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(173, 255, 47, 0.2);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 400px;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    border-color: rgba(173, 255, 47, 0.4);
}

.featured-image {
    position: relative;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.featured-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-badge {
    background: linear-gradient(45deg, #adff2f, #7dd32f);
    color: #000;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    width: fit-content;
    margin-bottom: 20px;
}

.featured-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.3;
}

.featured-excerpt {
    color: #ccc;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    font-size: 14px;
    color: #999;
}

.featured-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.featured-read-btn {
    background: linear-gradient(45deg, #adff2f, #7dd32f);
    color: #000;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    width: fit-content;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.featured-read-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(173, 255, 47, 0.3);
}

/* Articles Grid */
.articles-section {
    padding: 60px 0;
    background: #1a1a1a;
}

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

.article-card {
    background: rgba(45, 45, 45, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 1px solid rgba(173, 255, 47, 0.1);
    cursor: pointer;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(173, 255, 47, 0.3);
}

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

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

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

.article-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(173, 255, 47, 0.9);
    color: #000;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.article-content {
    padding: 25px;
}

.article-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-excerpt {
    color: #ccc;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
    margin-bottom: 15px;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-stats {
    display: flex;
    align-items: center;
    gap: 15px;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.article-tag {
    background: rgba(173, 255, 47, 0.1);
    color: #adff2f;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 11px;
    border: 1px solid rgba(173, 255, 47, 0.2);
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin-top: 40px;
}

.load-more-btn {
    background: linear-gradient(45deg, #adff2f, #7dd32f);
    color: #000;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(173, 255, 47, 0.3);
}

.load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Article Modal */
.article-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(173, 255, 47, 0.2);
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid rgba(173, 255, 47, 0.2);
    display: flex;
    justify-content: flex-end;
}

.close-modal {
    color: #adff2f;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #fff;
}

.modal-body {
    padding: 40px;
}

.modal-article-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 30px;
}

.modal-article-category {
    background: linear-gradient(45deg, #adff2f, #7dd32f);
    color: #000;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    width: fit-content;
    margin-bottom: 20px;
}

.modal-article-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.3;
}

.modal-article-meta {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(173, 255, 47, 0.1);
    font-size: 14px;
    color: #999;
}

.modal-article-content {
    color: #ccc;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.modal-article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.modal-article-tag {
    background: rgba(173, 255, 47, 0.1);
    color: #adff2f;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    border: 1px solid rgba(173, 255, 47, 0.2);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    color: #ccc;
    padding: 60px 0 20px;
    border-top: 1px solid rgba(173, 255, 47, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: #adff2f;
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo img {
    width: 40px;
    height: 40px;
}

.footer-logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: #adff2f;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #adff2f;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(173, 255, 47, 0.1);
    border: 1px solid rgba(173, 255, 47, 0.2);
    border-radius: 50%;
    color: #adff2f;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #adff2f;
    color: #000;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(173, 255, 47, 0.1);
    color: #999;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .page-description {
        font-size: 1rem;
    }
    
    .filter-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        justify-content: space-between;
    }
    
    .search-articles {
        max-width: none;
    }
    
    .featured-card {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .featured-content {
        padding: 30px 20px;
    }
    
    .featured-title {
        font-size: 1.5rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-article-title {
        font-size: 1.8rem;
    }
    
    .modal-article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 60px 0 40px;
    }
    
    .filter-section {
        padding: 20px 0;
    }
    
    .articles-section {
        padding: 40px 0;
    }
    
    .article-content {
        padding: 20px;
    }
    
    .modal-article-content {
        font-size: 1rem;
    }
}

/* Loading Animation */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(173, 255, 47, 0.3);
    border-top: 3px solid #adff2f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.no-results i {
    font-size: 4rem;
    color: #adff2f;
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 10px;
}

.no-results p {
    font-size: 1rem;
    line-height: 1.6;
}
