
/* ======================== */
/* POPUP ARTICLE STYLES */
/* ======================== */
.article-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.article-popup-overlay.active {
    display: flex;
    opacity: 1;
    justify-content: center;
    align-items: center;
    top: 200px;
}

.article-popup {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.article-popup.active {
    transform: scale(1);
}

.article-popup-header {
    padding: 25px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    z-index: 10;
    border-radius: 20px 20px 0 0;
}

.article-popup-title {
    font-size: 1.8rem;
    color: #fff;
    margin: 0 0 10px 0;
    line-height: 1.4;
    font-weight: 700;
}

.article-popup-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: #a0a0a0;
    font-size: 0.9rem;
    align-items: center;
}

.article-popup-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-popup-meta-item i {
    color: var(--primary-color);
}

.article-popup-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.article-popup-tag {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.article-popup-content {
    padding: 30px;
    color: #e0e0e0;
    line-height: 1.8;
}

.article-popup-content h2,
.article-popup-content h3,
.article-popup-content h4 {
    color: #fff;
    margin: 25px 0 15px 0;
}

.article-popup-content h2 {
    font-size: 1.5rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 8px;
}

.article-popup-content p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.article-popup-content ul,
.article-popup-content ol {
    margin: 15px 0;
    padding-left: 25px;
}

.article-popup-content li {
    margin-bottom: 8px;
}

.article-popup-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
    margin: 25px 0;
    font-style: italic;
    color: #a0a0a0;
    background: rgba(255, 255, 255, 0.03);
    padding: 15px 20px;
    border-radius: 0 10px 10px 0;
}

.article-popup-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.article-popup-content code {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #f78c6c;
}

.article-popup-content pre {
    background: #1e1e1e;
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.article-popup-content pre code {
    background: none;
    padding: 0;
    color: #d4d4d4;
}

.article-popup-content a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px dotted var(--primary-color);
    transition: all 0.3s ease;
}

.article-popup-content a:hover {
    color: var(--primary-light);
    border-bottom: 1px solid var(--primary-light);
}

.article-popup-footer {
    padding: 25px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 0 0 20px 20px;
    position: sticky;
    bottom: 0;
}

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

.article-popup-author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary-color);
}

.article-popup-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-popup-author-info h4 {
    margin: 0;
    color: #fff;
    font-size: 1rem;
}

.article-popup-author-info p {
    margin: 5px 0 0 0;
    color: #a0a0a0;
    font-size: 0.9rem;
}

.article-popup-actions {
    display: flex;
    gap: 15px;
}

.article-popup-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.article-popup-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.article-popup-btn.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 11;
}

.article-popup-btn.close-btn:hover {
    background: #e74c3c;
    border-color: #e74c3c;
}

.article-popup-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    color: #a0a0a0;
    font-size: 1.1rem;
}

.article-popup-loading i {
    margin-right: 10px;
    font-size: 1.5rem;
    color: var(--primary-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ======================== */
/* ARTICLE CARD UPDATED */
/* ======================== */
.article-card {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.article-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
}

.article-card .read-more {
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.article-card:hover .read-more {
    color: var(--primary-light);
    transform: translateX(5px);
}

.view-more-card {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    border: 2px dashed var(--primary-color);
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.view-more-card:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: var(--primary-light);
    color: var(--primary-light);
}

.view-more-content {
    text-align: center;
}

.view-more-content i {
    margin-bottom: 15px;
    font-size: 2.5rem;
}

/* ======================== */
/* RESPONSIVE POPUP */
/* ======================== */
@media (max-width: 768px) {
    .article-popup {
        width: 95%;
        max-height: 95vh;
        margin: 10px;
    }
    
    .article-popup-header {
        padding: 20px;
    }
    
    .article-popup-title {
        font-size: 1.4rem;
    }
    
    .article-popup-content {
        padding: 20px;
    }
    
    .article-popup-footer {
        padding: 20px;
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .article-popup-actions {
        width: 100%;
        justify-content: center;
    }
    
    .article-popup-meta {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

/* ======================== */
/* SCROLLBAR STYLING */
/* ======================== */
.article-popup::-webkit-scrollbar {
    width: 8px;
}

.article-popup::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.article-popup::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.article-popup::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}
