﻿/* Maydek Blog Sayfası Stilleri */

.maydek-blog-header {
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f5f5f5 0%, #f9f9f9 100%);
    border-radius: 8px;
    border-left: 4px solid #e74c3c;
}

.maydek-blog-header h1 {
    margin: 0 0 20px;
    font-size: 32px;
    color: #333;
    font-weight: 700;
}

.maydek-blog-header form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: stretch;
}

.maydek-blog-header input[type="search"] {
    flex: 1;
    min-width: 200px;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.maydek-blog-header input[type="search"]:focus {
    outline: none;
    border-color: #e74c3c;
}

.maydek-blog-header button {
    padding: 12px 32px;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.3s;
}

.maydek-blog-header button:hover {
    background: #c0392b;
}

.maydek-categories {
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.maydek-cat-card {
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.maydek-cat-card:hover {
    background: #fff;
    border-color: #e74c3c;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.15);
    transform: translateY(-2px);
}

.maydek-cat-card h3 {
    margin: 0 0 8px;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.maydek-cat-card p {
    margin: 0;
    color: #999;
    font-size: 13px;
}

.maydek-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.maydek-post-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.maydek-post-card:hover {
    border-color: #e74c3c;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.maydek-post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.maydek-post-card > div {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.maydek-post-card h2 {
    margin: 0 0 12px;
    font-size: 18px;
    line-height: 1.4;
    flex: 1;
}

.maydek-post-card h2 a {
    color: #333;
    text-decoration: none;
}

.maydek-post-card h2 a:hover {
    color: #e74c3c;
}

.maydek-post-card p {
    margin: 0 0 15px;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.maydek-post-card a.readmore,
.maydek-post-card > div > a:last-child {
    color: #e74c3c;
    font-weight: 600;
    text-decoration: none;
    align-self: flex-start;
    transition: color 0.3s;
}

.maydek-post-card a.readmore:hover,
.maydek-post-card > div > a:last-child:hover {
    color: #c0392b;
}

.maydek-post-card .cat-badge {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 12px;
    margin-right: 8px;
    margin-bottom: 8px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.maydek-post-card .cat-badge:hover {
    background: #c0392b;
}

.maydek-pagination {
    text-align: center;
    margin: 40px 0;
}

.maydek-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.maydek-pagination a,
.maydek-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid #e8e8e8;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.maydek-pagination a:hover {
    border-color: #e74c3c;
    color: #e74c3c;
    background: #fef5f3;
}

.maydek-pagination .page-numbers.current {
    background: #e74c3c;
    color: #fff;
    border-color: #e74c3c;
}

/* Responsif dizain */
@media (max-width: 768px) {
    .maydek-blog-header {
        padding: 20px;
    }

    .maydek-blog-header h1 {
        font-size: 24px;
    }

    .maydek-categories {
        grid-template-columns: 1fr;
    }

    .maydek-posts-grid {
        grid-template-columns: 1fr;
    }
}
