/* İç Sayfa Stilleri - Post, Page ve Category için */

/* Hero Alanı */
.page-hero {
    background: linear-gradient(rgba(3, 67, 139, 0.8), rgba(3, 67, 139, 0.8)),
        url('../img/banner.webp') no-repeat center center / cover;
    padding: 140px 0 60px;
    text-align: center;
    color: #fff;
    position: relative;
    margin-bottom: 60px;
    will-change: transform;
    contain: layout style paint;
}

.page-hero h1 {
    font-size: 38px;
    margin-bottom: 20px;
    color: #fff;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0;
    margin: 20px 0 0;
    list-style: none;
    background-color: transparent;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-item+.breadcrumb-item::before {
    content: "/";
    padding: 0 10px;
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s;
}

.breadcrumb-item a:hover {
    color: #FFC107;
    text-shadow: 0 0 8px rgba(255, 193, 7, 0.5);
}

.breadcrumb-item.active {
    color: #FFC107;
    font-weight: 600;
}

/* Grid Sistemi */
.inner-content {
    padding: 60px 0;
    background: #f8f9fa;
}

.content-wrapper {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.main-content {
    flex: 1;
    min-width: 0;
    flex-basis: calc(75% - 20px);
}

.sidebar-content {
    flex: 0 0 300px;
    min-width: 280px;
}

/* Post Content */
.post-article,
.page-article {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    padding: 40px;
    margin-bottom: 30px;
}

/* Post Image */
.post-featured-image {
    margin: -40px -40px 30px;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    position: relative;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.featured-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 20px;
    color: #fff;
}

/* Post Meta */
.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.post-meta span {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    color: #666;
}

.post-meta span i {
    margin-right: 8px;
    color: #043366;
}

.post-meta a {
    color: #043366;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.post-meta a:hover {
    color: #EA9C00;
}

/* Post Body */
.post-body,
.page-body {
    line-height: 1.9;
    font-size: 17px;
    color: #333;
}

.post-body h2,
.page-body h2 {
    font-size: 28px;
    color: #043366;
    margin-top: 35px;
    margin-bottom: 18px;
    font-weight: 700;
}

.post-body h3,
.page-body h3 {
    font-size: 24px;
    color: #043366;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.post-body p,
.page-body p {
    margin-bottom: 20px;
    text-align: justify;
}

.post-body img,
.page-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 25px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.post-body ul,
.page-body ul,
.post-body ol,
.page-body ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.post-body li,
.page-body li {
    margin-bottom: 10px;
}

/* Post Tags */
.post-tags {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid #eee;
}

.post-tags h4 {
    font-size: 18px;
    color: #043366;
    margin-bottom: 15px;
    font-weight: 600;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-link {
    display: inline-block;
    padding: 6px 15px;
    background: #f0f0f0;
    color: #043366;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.tag-link:hover {
    background: #043366;
    color: #fff;
    transform: translateY(-2px);
}

/* Share Buttons */
.post-share {
    margin-top: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 10px;
}

.post-share h4 {
    font-size: 18px;
    color: #043366;
    margin-bottom: 15px;
    font-weight: 600;
}

.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s;
}

.share-buttons a:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.share-buttons .facebook {
    background: #3b5998;
}

.share-buttons .twitter {
    background: #1da1f2;
}

.share-buttons .linkedin {
    background: #0077b5;
}

.share-buttons .whatsapp {
    background: #25d366;
}

/* Benzer Yazılar */
.related-posts {
    margin-top: 50px;
}

.related-posts h3 {
    font-size: 26px;
    color: #043366;
    margin-bottom: 25px;
    font-weight: 700;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.related-post-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.related-post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.related-post-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.related-post-content {
    padding: 20px;
}

.related-post-content h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #043366;
    font-weight: 600;
}

.related-post-content h4 a {
    color: #043366;
    text-decoration: none;
    transition: color 0.3s;
}

.related-post-content h4 a:hover {
    color: #EA9C00;
}

.related-post-date {
    font-size: 13px;
    color: #999;
}

.related-post-date i {
    margin-right: 5px;
}

/* Sidebar */
.sidebar-widget {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.sidebar-widget h3 {
    font-size: 20px;
    color: #043366;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #EA9C00;
    font-weight: 700;
}

.sidebar-widget img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s;
}

.sidebar-widget a:hover img {
    transform: scale(1.05);
}

.sidebar-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu-list li {
    border-bottom: 1px solid #eee;
}

.sidebar-menu-list li:last-child {
    border-bottom: none;
}

.sidebar-menu-item {
    display: flex;
    align-items: flex-start;
    padding: 12px 0;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
    gap: 10px;
}

.sidebar-menu-item:hover {
    color: #043366;
    padding-left: 8px;
}

.sidebar-menu-item i {
    margin-top: 4px;
    color: #EA9C00;
    font-size: 12px;
}

.sidebar-menu-item .view-count {
    margin-left: auto;
    font-size: 12px;
    color: #999;
}

/* Responsive */
@media (max-width: 1024px) {
    .main-content {
        flex-basis: calc(70% - 20px);
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 120px 0 40px;
    }

    .page-hero h1 {
        font-size: 28px;
    }

    .content-wrapper {
        flex-direction: column;
    }

    .main-content {
        flex-basis: 100%;
    }

    .sidebar-content {
        flex-basis: 100%;
        width: 100%;
    }

    .post-article,
    .page-article {
        padding: 25px;
    }

    .post-featured-image {
        margin: -25px -25px 20px;
    }

    .post-body,
    .page-body {
        font-size: 16px;
    }

    .share-buttons a {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .breadcrumb-item {
        font-size: 13px;
    }

    .post-meta {
        gap: 15px;
    }

    .post-meta span {
        font-size: 13px;
    }
}