/* ============================================================================
   FILE.CSS - CATEGORY PAGE STYLES ONLY
   Component stilleri kaldırıldı, sadece file.php'ye özel stiller
   ============================================================================ */

/* Base Variables */
: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);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: white;
    background-image: url('https://admin.forbiddenexus.com/assets/785ec0d9-d5fb-4946-8de7-3c1c3d631323');
    background-size: cover;
    background-position: center;
    background-repeat: repeat;
    background-attachment: fixed;
}

.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: 90px;
    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);
}

a {
    text-decoration: none;
    color: white;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
}
/* ============================================================================
   CATEGORY HEADER
   ============================================================================ */

.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;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* ============================================================================
   NO POSTS STATE
   ============================================================================ */

.no-posts {
    text-align: center;
    padding: 60px 0;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.no-posts-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.no-posts h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.no-posts p {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 30px;
}

.no-posts .btn {
    padding: 12px 25px;
    font-size: 1rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.no-posts .btn:hover {
    background-color: #a93226;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ============================================================================
   ARTICLES GRID & CARDS
   ============================================================================ */

.articles-grid {
    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-grid.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);
}

.card-image {
    position: relative;
    width: 100%;
    height: 200px; /* Sabit yükseklik */
    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;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Resmi container'a tam sığdır */
    object-position: center; /* Merkezi koru */
    transition: all 0.3s ease;
    display: block;
    border: none;
    outline: none;
}

.article-card:hover .card-image img {
    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;
}

.card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.4;
    color: var(--primary-color);
    font-weight: 600;
    flex-shrink: 0;
}

.card-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);
}
/* ============================================================================
   PAGINATION
   ============================================================================ */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
    gap: 15px;
    flex-wrap: wrap;
}

.pagination-numbers {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.pagination a,
.pagination-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.pagination-number.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination a:hover:not(.active),
.pagination-number:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pagination-prev, 
.pagination-next {
    padding: 0 20px !important;
    font-weight: 600;
}

.pagination-prev i, 
.pagination-next i {
    font-size: 0.8rem;
}

.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    color: #888;
    font-weight: bold;
}

/* ============================================================================
   ERROR 404 PAGE
   ============================================================================ */

.error-404 {
    text-align: center;
    padding: 80px 0;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.error-content {
    max-width: 600px;
    margin: 0 auto;
}

.error-icon {
    font-size: 5rem;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.error-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: white;
    font-weight: 700;
}

.error-description {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 30px;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn:hover {
    background-color: #a93226;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* ============================================================================
   DEBUG INFO SECTION
   ============================================================================ */

.debug-info {
    margin-top: 40px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.9);
    border-radius: 8px;
    border: 1px solid #333;
    text-align: left;
}

.debug-info h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.debug-details p {
    color: white;
    margin-bottom: 10px;
    font-family: monospace;
}

.debug-details a {
    color: var(--primary-color);
}

.debug-details details {
    margin: 15px 0;
    border: 1px solid #333;
    border-radius: 4px;
}

.debug-details summary {
    padding: 10px;
    background-color: rgba(192, 57, 43, 0.1);
    cursor: pointer;
    color: var(--primary-color);
    font-weight: 600;
}

.debug-details pre {
    background-color: #000;
    color: #0f0;
    padding: 10px;
    overflow: auto;
    max-height: 300px;
    font-size: 0.8rem;
}

.debug-details ul {
    list-style: none;
    padding: 10px;
}

.debug-details li {
    padding: 5px 0;
    border-bottom: 1px solid #333;
}

.debug-details li:last-child {
    border-bottom: none;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 992px) {
    .main-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .articles {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 25px;
    }
    
    .category-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .main-container {
        margin-top: 100px;
        padding: 20px;
    }
    
    .articles {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .category-title {
        font-size: 1.8rem;
    }
    
    .category-description {
        font-size: 1rem;
    }
    
    .pagination-numbers {
        display: none;
    }
    
    .error-title {
        font-size: 2.5rem;
    }
    
    .error-description {
        font-size: 1rem;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 200px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .main-container {
        padding: 15px;
    }
    
    .category-header {
        padding: 20px 15px;
    }
    
    .category-title {
        font-size: 1.6rem;
    }
    
    .category-description {
        font-size: 0.9rem;
    }
    
    .article-content {
        padding: 15px;
    }
    
    .article-title {
        font-size: 1.1rem;
    }
    
    .article-excerpt {
        font-size: 0.85rem;
    }
    
    .article-meta {
        font-size: 0.75rem;
        flex-direction: column;
        gap: 5px;
    }
    
    .pagination {
        gap: 10px;
    }
    
    .pagination a {
        min-width: 35px;
        height: 35px;
        padding: 0 8px;
        font-size: 0.8rem;
    }
    
    .error-icon {
        font-size: 3rem;
    }
    
    .error-title {
        font-size: 2rem;
    }
    
    .no-posts {
        padding: 40px 20px;
    }
    
    .no-posts-icon {
        font-size: 3rem;
    }
}

/* ============================================================================
   ACCESSIBILITY ENHANCEMENTS
   ============================================================================ */

/* Focus indicators */
.article-card-link:focus,
.pagination a:focus,
.btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .article-card,
    .article-overlay,
    .btn,
    .pagination a {
        transition: none;
    }
    
    .article-card:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .article-card {
        border: 2px solid var(--primary-color);
    }
    
    .pagination a,
    .btn {
        border: 2px solid currentColor;
    }
}