: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);
}

.home-page .main-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 100px;
    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);
    margin-left: auto;
    margin-right: auto;
}

.home-page aside {
    position: sticky;
    top: 99px;
    align-self: start;
}

@media (max-width: 768px) {
    .home-page .main-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        gap: 20px;
        margin-top: 20px;
        padding: 15px;
        background-color: rgba(50, 50, 50, 0.9);
    }
    
    /* Sidebar önce gelir (grid order) */
    .home-page aside {
        order: 1;
        position: static;
        top: auto;
        align-self: auto;
    }
    
    /* Articles sonra gelir */
    .home-page .content-area {
        order: 2;
    }
    
    /* Articles grid mobile'a optimize */
    .home-page .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 20px;
    }
    
    /* Article cards mobile optimization */
    .home-page .article-card {
        margin: 0;
    }
    
    .home-page .card-image {
        height: 180px;
    }
    
    .home-page .card-content {
        padding: 15px;
    }
    
    .home-page .card-title {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .home-page .card-excerpt {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }
}

a {
    text-decoration: none;
    color: white;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
}

.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;
}

.section-title {
    padding: 1rem;
}

.section-title h2 {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    color: white;
    font-weight: 600;
}

.section-title i {
    margin-right: 15px;
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* ============================================================================
   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;
    overflow: hidden;
    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);
}

.article-card:hover .featured-badge {
    transform: scale(1.1);
    background: linear-gradient(135deg, #e67e22, #d35400);
}
.articles-skeleton {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.skeleton-card {
    background-color: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #333;
}

.skeleton {
    background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 4px;
}

.skeleton-image {
    width: 100%;
    height: 200px;
}

/* ============================================================================
   LAZY LOADING COMPONENTS
   ============================================================================ */

.lazy-bg {
    background-size: cover;
    background-position: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

.lazy-bg.loading {
    opacity: 0.7;
}

.lazy-bg.loaded {
    opacity: 1;
}

.lazy-bg.loaded .image-loader {
    opacity: 0;
    pointer-events: none;
}

.image-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 2;
    transition: opacity 0.3s ease;
}

/* ============================================================================
   LOAD MORE FUNCTIONALITY
   ============================================================================ */

.load-more-container {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 30px;
}

.load-more-btn {
    position: relative;
    overflow: hidden;
    min-width: 200px;
    transition: all 0.3s ease;
    background: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

.load-more-btn:hover {
    background: #a93226;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(192, 57, 43, 0.3);
}

.load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.load-more-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ============================================================================
   ICON STYLES
   ============================================================================ */

.fas.fa-search {
    color: white;
}

.fas.fa-fire {
    margin-bottom: 10px;
}

/* ============================================================================
   SCROLLBAR CUSTOMIZATION
   ============================================================================ */

::-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;
}