/*
========================================
ARTICLE ARCHIVE PAGE STYLES - ACADEMIC DESIGN
========================================
Description: Professional academic design for research articles
Version: 2.0.0
Author: Digital Heritage Lab
========================================
*/

/* ===== CSS VARIABLES ===== */
:root {
    /* Digital Heritage Lab Color Scheme */
    --dhl-primary: #A4161A;
    --dhl-primary-dark: #660708;
    --dhl-primary-bright: #E5383B;
    --dhl-bg-dark: #161A1D;
    --dhl-bg-darkest: #0B090A;
    --dhl-gray-dark: #B1A7A6;
    --dhl-gray: #D3D3D3;
    --dhl-gray-light: #F5F3F4;
    --dhl-white: #ffffff;
    --dhl-black: #000000;
    
    /* Academic Enhancement Colors */
    --dhl-academic-light: #fef7f7;
    --dhl-academic-lighter: #fefcfc;
    --dhl-shadow: 0 10px 25px rgba(164, 22, 26, 0.15);
    --dhl-shadow-hover: 0 20px 40px rgba(164, 22, 26, 0.25);
    --dhl-gradient: linear-gradient(135deg, #A4161A 0%, #E5383B 100%);
    --dhl-gradient-subtle: linear-gradient(135deg, #F5F3F4 0%, #fef7f7 100%);
}

/* ===== MAIN SECTION ===== */
.article-page-section {
    background: linear-gradient(135deg, #0B090A 0%, #161A1D 50%, #1a1e22 100%);
    min-height: 100vh;
    padding: 100px 0 80px;
    position: relative;
}

.article-page-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="academic-grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(164,22,26,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23academic-grid)"/></svg>');
    z-index: 0;
}

/* ===== HEADER SECTION ===== */
.article-header {
    text-align: center;
    margin-bottom: 80px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
    background: rgba(22, 26, 29, 0.95);
    backdrop-filter: blur(20px);
    padding: 60px 40px;
    border-radius: 30px;
    box-shadow: var(--dhl-shadow);
    border: 2px solid rgba(164, 22, 26, 0.3);
}

.article-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--dhl-gradient);
    color: var(--dhl-white);
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 32px;
    box-shadow: var(--dhl-shadow);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    border: 3px solid rgba(164, 22, 26, 0.4);
}

.article-badge i {
    font-size: 20px;
}

.article-title {
    font-size: 4rem;
    font-weight: 900;
    color: var(--dhl-white);
    margin-bottom: 24px;
    line-height: 1.1;
    background: var(--dhl-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    text-shadow: 0 0 30px rgba(164, 22, 26, 0.5);
}

.article-description {
    font-size: 1.4rem;
    color: var(--dhl-gray);
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto 40px;
    font-weight: 400;
}

/* ===== STATISTICS SECTION ===== */
.article-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid rgba(26, 54, 93, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 900;
    color: var(--dhl-primary);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--dhl-gray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== FILTER SECTION ===== */
.research-filter {
    background: rgba(22, 26, 29, 0.95);
    backdrop-filter: blur(20px);
    padding: 32px 40px;
    border-radius: 25px;
    margin-bottom: 60px;
    box-shadow: var(--dhl-shadow);
    border: 2px solid rgba(164, 22, 26, 0.3);
    position: relative;
    z-index: 1;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    font-weight: 700;
    color: var(--dhl-white);
    font-size: 1.1rem;
}

.filter-label i {
    color: var(--dhl-primary);
    font-size: 1.2rem;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 2px solid var(--dhl-primary);
    background: rgba(164, 22, 26, 0.1);
    color: var(--dhl-primary);
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--dhl-primary);
    color: var(--dhl-white) !important; /* Hover'da beyaz kalması için */
    transform: translateY(-2px);
    box-shadow: var(--dhl-shadow);
}

.filter-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    min-width: 20px;
    text-align: center;
}

/* ===== PAGINATION STYLES ===== */
.article-pagination-container {
    margin-top: 60px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 100 !important;
    width: 100% !important;
}

.article-pagination-wrapper {
    background: var(--dhl-dark) !important;
    border-radius: 16px !important;
    padding: 20px !important;
    box-shadow: var(--dhl-shadow) !important;
    position: relative !important;
    z-index: 101 !important;
}

.pagination-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-btn {
    padding: 12px 18px;
    border: 2px solid var(--dhl-primary);
    background: rgba(164, 22, 26, 0.1);
    color: var(--dhl-white); /* Beyaz text */
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover {
    background: var(--dhl-primary);
    color: var(--dhl-white); /* Hover'da da beyaz */
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(164, 22, 26, 0.3);
}

.pagination-btn.current-page {
    background: var(--dhl-primary);
    color: var(--dhl-white); /* Active'de de beyaz */
    box-shadow: 0 8px 25px rgba(164, 22, 26, 0.3);
    cursor: default;
}

.pagination-btn.prev-btn,
.pagination-btn.next-btn {
    padding: 12px 24px;
    font-weight: 700;
}

@media (max-width: 768px) {
    .article-pagination-container {
        margin-top: 40px;
    }
    
    .pagination-buttons {
        gap: 8px;
    }
    
    .pagination-btn {
        padding: 10px 14px;
        font-size: 0.85rem;
        min-width: 40px;
        height: 40px;
    }
    
    .pagination-btn.prev-btn,
    .pagination-btn.next-btn {
        padding: 10px 16px;
    }
}

/* ===== ARTICLE GRID ===== */
.article-content {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

/* ===== ARTICLE CARDS ===== */
.article-card {
    background: rgba(22, 26, 29, 0.95);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(164, 22, 26, 0.3);
    border-radius: 30px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    box-shadow: var(--dhl-shadow);
    display: flex;
    flex-direction: column;
    position: relative;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--dhl-gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.article-card:hover::before {
    opacity: 0.05;
}

.article-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--dhl-shadow-hover);
    border-color: var(--dhl-primary-bright);
}

.article-card-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    z-index: 1;
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}

.article-card:hover .article-card-image img {
    transform: scale(1.1);
}

.article-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(11, 9, 10, 0.7) 100%);
}

.article-type-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(22, 26, 29, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--dhl-white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(164, 22, 26, 0.4);
}

.article-type-badge i {
    color: var(--dhl-primary);
}

.article-card-content {
    padding: 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.article-card-category {
    margin-bottom: 20px;
}

.article-card-category a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--dhl-gradient);
    color: var(--dhl-white);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-card-category a:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(164, 22, 26, 0.4);
    color: var(--dhl-white) !important; /* Hover'da beyaz kalması için */
}

.article-card-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-card-title a {
    color: var(--dhl-white);
    text-decoration: none;
    transition: color 0.3s;
}

.article-card-title a:hover {
    color: var(--dhl-primary-bright);
}

.article-card-excerpt {
    color: var(--dhl-gray);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
    flex: 1;
    font-weight: 400;
}

/* ===== RESEARCH METADATA ===== */
.research-metadata {
    background: rgba(164, 22, 26, 0.15);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    border-left: 4px solid var(--dhl-primary);
    border: 1px solid rgba(164, 22, 26, 0.3);
}

.metadata-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.metadata-item:last-child {
    margin-bottom: 0;
}

.metadata-item i {
    color: var(--dhl-primary-bright);
    width: 16px;
    text-align: center;
}

.metadata-label {
    font-weight: 600;
    color: var(--dhl-gray);
    min-width: 90px;
}

.metadata-value {
    color: var(--dhl-white);
    font-weight: 500;
}

.doi-link {
    text-decoration: none;
    color: var(--dhl-primary-bright) !important;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.doi-link:hover {
    text-decoration: underline;
}

/* ===== ARTICLE META ===== */
.article-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-top: 25px;
    border-top: 2px solid rgba(164, 22, 26, 0.1);
}

.article-card-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.article-card-author img {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    border: 3px solid var(--dhl-primary);
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 700;
    color: var(--dhl-white);
    font-size: 1rem;
}

.author-title {
    font-size: 0.85rem;
    color: var(--dhl-gray);
    font-weight: 500;
}

.article-stats-mini {
    display: flex;
    gap: 20px;
}

.stat-mini {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--dhl-gray);
    font-weight: 500;
}

.stat-mini i {
    color: var(--dhl-primary);
    width: 14px;
    text-align: center;
}

/* ===== ARTICLE ACTIONS ===== */
.article-actions {
    display: flex;
    gap: 15px;
}

.article-read-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--dhl-gradient);
    color: var(--dhl-white);
    padding: 16px 24px;
    border-radius: 20px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s;
    text-align: center;
    position: relative;
    overflow: hidden;
    font-size: 1rem;
}

.article-read-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

.article-read-btn:hover::before {
    left: 100%;
}

.article-read-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(164, 22, 26, 0.4);
    color: var(--dhl-white) !important; /* Hover'da beyaz kalması için */
}

/* ===== PAGINATION ===== */
.article-pagination {
    display: flex;
    justify-content: center;
    margin-top: 80px;
}

.article-pagination ul {
    display: flex;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
    background: rgba(22, 26, 29, 0.95);
    padding: 20px;
    border-radius: 25px;
    box-shadow: var(--dhl-shadow);
    border: 1px solid rgba(164, 22, 26, 0.3);
}

.article-pagination li {
    display: inline-block;
}

.article-pagination a,
.article-pagination span {
    display: inline-block;
    min-width: 50px;
    padding: 14px 18px;
    border-radius: 15px;
    background: transparent;
    color: var(--dhl-gray);
    text-align: center;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.article-pagination .current {
    background: var(--dhl-gradient);
    color: var(--dhl-white);
    box-shadow: var(--dhl-shadow);
}

.article-pagination a:hover {
    background: rgba(164, 22, 26, 0.2);
    border-color: var(--dhl-primary);
    transform: translateY(-2px);
    color: var(--dhl-white);
}

/* ===== NO CONTENT STATE ===== */
.article-no-content {
    text-align: center;
    padding: 120px 20px;
    color: var(--dhl-gray);
}

.no-content-animation {
    position: relative;
    margin-bottom: 40px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.research-icon {
    font-size: 5rem;
    color: var(--dhl-primary);
    animation: float 3s ease-in-out infinite;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.element {
    position: absolute;
    font-size: 2rem;
    color: var(--dhl-primary);
    opacity: 0.6;
    animation: orbit 8s linear infinite;
}

.element-1 {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.element-2 {
    top: 30%;
    right: 20%;
    animation-delay: 2.5s;
}

.element-3 {
    bottom: 20%;
    left: 50%;
    animation-delay: 5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes orbit {
    from { transform: rotate(0deg) translateX(80px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(80px) rotate(-360deg); }
}

.article-no-content h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dhl-white);
    margin-bottom: 20px;
}

.article-no-content p {
    font-size: 1.3rem;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 25px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1rem;
}

.cta-btn.primary {
    background: var(--dhl-gradient);
    color: var(--dhl-white);
    box-shadow: var(--dhl-shadow);
}

.cta-btn.secondary {
    background: transparent;
    color: var(--dhl-primary);
    border: 2px solid var(--dhl-primary);
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--dhl-shadow-hover);
}

/* ===== NEWSLETTER SECTION ===== */
.research-newsletter {
    background: var(--dhl-gradient);
    padding: 80px 0;
    margin-top: 0;
    position: relative;
}

.research-newsletter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: 30px 30px;
}

.newsletter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.newsletter-text {
    flex: 1;
}

.newsletter-text h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dhl-white);
    margin-bottom: 16px;
    line-height: 1.2;
}

.newsletter-text p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.newsletter-form {
    flex: 1;
    max-width: 500px;
}

.research-subscribe-form {
    display: flex;
    gap: 15px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    padding: 12px;
    border-radius: 25px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.research-subscribe-form input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    outline: none;
}

.research-subscribe-form button {
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--dhl-primary);
    border: none;
    border-radius: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.research-subscribe-form button:hover {
    background: var(--dhl-white);
    transform: translateY(-2px);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .article-grid {
        grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
        gap: 30px;
    }
    
    .article-stats {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .article-page-section {
        padding: 80px 0 60px;
    }
    
    .article-header {
        margin-bottom: 60px;
        padding: 40px 20px;
    }
    
    .article-title {
        font-size: 3rem;
    }
    
    .article-description {
        font-size: 1.2rem;
    }
    
    .article-stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .article-card-content {
        padding: 30px;
    }
    
    .article-card-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .article-stats-mini {
        flex-direction: column;
        gap: 10px;
    }
    
    .newsletter-content {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
    
    .research-subscribe-form {
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .article-page-section {
        padding: 60px 0 40px;
    }
    
    .article-title {
        font-size: 2.5rem;
    }
    
    .article-card-image {
        height: 200px;
    }
    
    .article-pagination a,
    .article-pagination span {
        min-width: 40px;
        padding: 12px 14px;
        font-size: 0.9rem;
    }
    
    .article-actions {
        flex-direction: column;
    }
    
    .newsletter-text h3 {
        font-size: 2rem;
    }
}

/* ===== ANIMATIONS ===== */
.article-card {
    animation: fadeInUp 0.6s ease-out;
}

.article-card:nth-child(1) { animation-delay: 0.1s; }
.article-card:nth-child(2) { animation-delay: 0.2s; }
.article-card:nth-child(3) { animation-delay: 0.3s; }
.article-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
