:root {
    --primary-color: #c0392b;
    --secondary-color: #2c3e50;
    --light-color: #ecf0f1;
    --dark-color: #121212;
    --gray-color: #95a5a6;
    --border-color: #34495e;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --bg-gradient: linear-gradient(to right, #2c3e50, #1a1a2e);
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 85px;
    margin-bottom: 50px;
    max-width: 1200px;
    background-color: rgba(50, 50, 50, 0.8);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
/* ============================================================================
   TYPOGRAPHY & LINKS
   ============================================================================ */

a {
    text-decoration: none;
    color: white;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* ============================================================================
   BUTTONS & FORM ELEMENTS
   ============================================================================ */

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    font-family: inherit;
}

.btn:hover {
    background-color: #a93226;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ============================================================================
   CATEGORY HEADER - RECENT POSTS SPECIFIC
   ============================================================================ */

.category-header {
    background-color: #121212;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.category-title {
    font-size: 2.2rem;
    margin-bottom: 0;
    color: white;
    font-weight: 600;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.category-title i {
    color: var(--primary-color);
    font-size: 2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.category-meta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.page-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    background: rgba(192, 57, 43, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(192, 57, 43, 0.3);
    transition: all 0.3s ease;
}

.page-info:hover {
    background: rgba(192, 57, 43, 0.2);
    border-color: rgba(192, 57, 43, 0.5);
}

.page-info i {
    color: var(--primary-color);
}

/* ============================================================================
   ARTICLES GRID & CARDS
   ============================================================================ */

.articles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    width: 100%;
    opacity: 1;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.articles.loaded {
    opacity: 1;
    transform: translateY(0);
}

.article-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    animation: fadeInUp 0.6s ease forwards;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

.article-card-link:hover .article-card {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 20px 40px rgba(192, 57, 43, 0.3) !important;
    border-color: rgba(192, 57, 43, 0.5) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 10 !important;
}

/* Stagger animation for multiple posts */
.article-card-link:nth-child(1) { animation-delay: 0.1s; }
.article-card-link:nth-child(2) { animation-delay: 0.2s; }
.article-card-link:nth-child(3) { animation-delay: 0.3s; }
.article-card-link:nth-child(4) { animation-delay: 0.4s; }
.article-card-link:nth-child(5) { animation-delay: 0.5s; }
.article-card-link:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-card {
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
    will-change: transform;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.article-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(45deg, #2a2a2a 25%, transparent 25%), 
                linear-gradient(-45deg, #2a2a2a 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #2a2a2a 75%), 
                linear-gradient(-45deg, transparent 75%, #2a2a2a 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.3s ease;
    display: block;
    border: none;
    outline: none;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-card:hover .placeholder-image {
    transform: scale(1.05);
}

.article-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 2;
}

.article-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.4;
    color: var(--primary-color);
    font-weight: 600;
    flex-shrink: 0;
}

.article-excerpt {
    color: white;
    margin-bottom: 15px;
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    flex: 1;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--gray-color);
    margin-top: auto;
}

.card-meta span {
    display: flex;
    align-items: center;
}

.card-meta i {
    margin-right: 5px;
    color: var(--primary-color);
}

.placeholder-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 3rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.placeholder-image:hover {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    color: rgba(255, 255, 255, 0.8);
}

.placeholder-image i {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.3);
    z-index: 3;
    animation: pulse 2s infinite;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-badge i {
    font-size: 0.8rem;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(243, 156, 18, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(243, 156, 18, 0.5);
    }
}

/* Hover effect for parent card */
.article-card:hover .featured-badge {
    transform: scale(1.1);
    background: linear-gradient(135deg, #e67e22, #d35400);
}
/* ============================================================================
   NO POSTS STATE
   ============================================================================ */

.no-posts {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(44,62,80,0.6) 100%);
    border-radius: 12px;
    border: 1px solid rgba(192, 57, 43, 0.3);
    margin-bottom: 30px;
}

.no-posts-icon {
    margin-bottom: 20px;
}

.no-posts-icon i {
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.7;
}

.no-posts h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.no-posts p {
    color: #bdc3c7;
    font-size: 1.1rem;
    margin-bottom: 25px;
    line-height: 1.6;
}

.no-posts .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.no-posts .btn:hover {
    background: #a93226;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(192, 57, 43, 0.3);
    color: white;
    text-decoration: none;
}

/* ============================================================================
   PAGINATION
   ============================================================================ */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
    gap: 15px;
    flex-wrap: wrap;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.pagination-btn:hover {
    background: #a93226;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(192, 57, 43, 0.3);
    color: white;
    text-decoration: none;
}

.pagination-numbers {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.pagination-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 6px;
    background-color: #2c3e50;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pagination-number:hover {
    background-color: #354b60;
    transform: translateY(-1px);
    color: white;
    text-decoration: none;
}

.pagination-number.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    color: #888;
    font-weight: bold;
}

.pagination-info {
    text-align: center;
    margin-top: 20px;
    color: #888;
    font-size: 0.9rem;
}

.pagination-info p {
    margin: 0;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    display: inline-block;
}

/* ============================================================================
   READING PROGRESS BAR
   ============================================================================ */

.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, #e74c3c 100%);
    z-index: 9999;
    transition: width 0.3s ease;
    box-shadow: 0 2px 10px rgba(192, 57, 43, 0.3);
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 1024px) {
    .main-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .articles {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 25px;
    }

    .files-header {
        margin-top: 15px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .category-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px;
    }
    
    .category-title {
        font-size: 1.8rem;
        justify-content: center;
    }
    
    .category-meta {
        justify-content: center;
    }
    
    .articles {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .pagination {
        gap: 10px;
    }
    
    .pagination-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .pagination-number {
        min-width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .category-title {
        font-size: 1.5rem;
        gap: 10px;
    }
    
    .category-title i {
        font-size: 1.5rem;
    }
    
    .page-info {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
    
    .article-card {
        margin: 0 5px;
    }
    
    .pagination-numbers {
        justify-content: center;
    }
}

/* ============================================================================
   LOADING STATES & ANIMATIONS
   ============================================================================ */

.articles.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================================================
   DARK MODE ENHANCEMENTS
   ============================================================================ */

@media (prefers-color-scheme: dark) {
    .pagination-number {
        background-color: #1a1a1a;
        border-color: rgba(255, 255, 255, 0.2);
    }
    
    .pagination-number:hover {
        background-color: #2c2c2c;
    }
    
    .category-header {
        background-color: #0a0a0a;
        border-color: rgba(255, 255, 255, 0.2);
    }
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */

.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mt-30 {
    margin-top: 30px;
}

.fade-in {
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============================================================================
   PRINT STYLES
   ============================================================================ */

@media print {
    .category-header,
    .pagination,
    .pagination-info,
    .reading-progress {
        display: none !important;
    }
    
    .articles {
        display: block !important;
    }
    
    .article-card {
        break-inside: avoid;
        margin-bottom: 20px;
        border: 1px solid #ccc;
    }
    
    .article-card-link {
        color: #000 !important;
    }
    
    .article-title {
        color: #000 !important;
    }
    
    .article-excerpt {
        color: #333 !important;
    }
}

.files-title {
    font-size: 2.5rem;
    color: whitesmoke;
    font-weight: 700;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.files-title i {
    color: var(--primary-color);
    padding-right: 1rem;
}

.files-header {
    margin-bottom: 10px;
    text-align: center;
    padding: 1rem;
    background-color: #121212;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Scrollbar Stilleri */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #a93226;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #c0392b;
    border-radius: 10px;
    border: 2px solid #a93226;
}

::-webkit-scrollbar-thumb:hover {
    background: #000;
}

* {
    scrollbar-width: thin;
    scrollbar-color: #000 #a93226;
}