/* Genel Stiller */
:root {
    --primary: #4a6fa5;
    --secondary: #6b5b95;
    --accent: #e63946;
    --light: #f1faee;
    --dark: #1d3557;
    --gray: #8d99ae;
    --light-gray: #edf2f4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}




/* Blog Container */
.blog-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.blog-header {
    text-align: center;
    margin-bottom: 40px;
}

.blog-header h1 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.blog-header p {
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

.category-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.category-filters button {
    padding: 10px 20px;
    border: none;
    border-radius: 30px;
    background-color: var(--light-gray);
    color: var(--dark);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-filters button:hover {
    background-color: var(--primary);
    color: white;
}

.category-filters button.active {
    background-color: var(--primary);
    color: white;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.article-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: height 0.4s ease;
}

.article-content {
    padding: 25px;
    transition: all 0.4s ease;
}

.article-category {
    display: inline-block;
    padding: 5px 15px;
    background-color: var(--light);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.article-content h3 {
    font-size: 1.4rem;
    color: var(--dark);
    margin-bottom: 15px;
    line-height: 1.4;
    transition: all 0.4s ease;
}

.article-excerpt {
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
    max-height: 60px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    color: var(--gray);
    font-size: 0.9rem;
    padding-top: 15px;
    border-top: 1px solid #eee;
    transition: all 0.4s ease;
}

/* Expanded State */
.article-card.expanded {
    position: fixed;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    animation: expandCard 0.6s forwards;
}

@keyframes expandCard {
    0% {
        transform: translateX(-50%) scale(0.9);
        opacity: 0;
    }
    100% {
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }
}

.article-card.expanded .article-image {
    height: 300px;
}

.article-card.expanded .article-content {
    padding: 35px;
}

.article-card.expanded .article-content h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.article-card.expanded .article-excerpt {
    max-height: none;
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.article-full-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s ease;
    color: #444;
    line-height: 1.8;
    font-size: 1.05rem;
}

.article-card.expanded .article-full-content {
    max-height: 1000px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    margin-top: 20px;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 999;
    display: none;
}

/* Close button for expanded card */
.close-expanded {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.article-card.expanded .close-expanded {
    opacity: 1;
}

/* Footer */
footer {
    background: linear-gradient(to right, var(--dark), #2a3a5a);
    color: white;
    padding: 60px 0 0;
    margin-top: 80px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h3 {
    font-size: 1.4rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent);
}

.footer-section p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #ddd;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.footer-section ul li a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.footer-section .social-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.footer-section .social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.footer-section .social-icons a:hover {
    background: var(--accent);
    transform: translateY(-5px);
}

.newsletter {
    display: flex;
    margin-top: 20px;
}

.newsletter input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 30px 0 0 30px;
    outline: none;
}

.newsletter button {
    padding: 0 20px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.3s ease;
}

.newsletter button:hover {
    background: #ff6b6b;
}

.footer-bottom {
    text-align: center;
    padding: 25px 0;
    margin-top: 50px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive Tasarım */
@media (max-width: 992px) {
    
   
    
    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .user-actions {
        width: 100%;
        justify-content: center;
    }
    
    .blog-header h1 {
        font-size: 2rem;
    }
    
    .category-filters {
        gap: 10px;
    }
    
    .category-filters button {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .article-card.expanded {
        width: 95%;
        max-height: 80vh;
    }
}

@media (max-width: 576px) {
    .article-card.expanded .article-image {
        height: 200px;
    }
    
    .article-card.expanded .article-content h3 {
        font-size: 1.5rem;
    }
}