/* ========================================
   SINGLE POST - Makale Detay Sayfası
   ======================================== */
.single-post-wrapper {
    padding: 60px 0;
    background: var(--color-light-gray);
}

.single-post-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.single-post-main {
    min-width: 0;
}

.single-post {
    background: var(--color-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

/* Post Header */
.post-header {
    padding: 50px 60px 30px;
    text-align: center;
}

.post-categories {
    margin-bottom: 20px;
}

.post-category {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--color-secondary);
    line-height: 1.3;
    margin-bottom: 20px;
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 15px;
    color: var(--color-text-gray);
}

.post-date,
.post-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-date svg,
.post-author svg {
    color: var(--color-primary);
}

/* Featured Image */
.post-featured-image {
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Post Content */
.post-content {
    padding: 50px 60px;
    font-size: 18px;
    line-height: 1.8;
    color: var(--color-text-dark);
}

.post-content p {
    margin-bottom: 20px;
}

.post-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-secondary);
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    position: relative;
}

.post-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}

.post-content h3 {
    font-size: 26px;
    font-weight: 700;
    color: var(--color-secondary);
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    position: relative;
}

.post-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
}

.post-content h4 {
    font-size: 22px;
    font-weight: 600;
    color: var(--color-secondary);
    margin-top: 25px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    position: relative;
}

.post-content h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40%;
    height: 2px;
    background: var(--color-primary);
}

@keyframes sweepLine {
    0% {
        width: 0;
        opacity: 0;
    }

    50% {
        width: 100%;
        opacity: 1;
    }

    100% {
        width: 60%;
        opacity: 1;
    }
}

.post-content ul,
.post-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.post-content li {
    margin-bottom: 10px;
}

.post-content a {
    color: var(--color-primary);
    text-decoration: underline;
}

.post-content a:hover {
    color: var(--color-primary-dark);
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 30px 0;
}

.post-content blockquote {
    border-left: 4px solid var(--color-primary);
    padding-left: 30px;
    margin: 30px 0;
    font-style: italic;
    color: var(--color-text-gray);
}

/* Yıldız Puanlama - İnteraktif */
.post-rating-wrapper {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

.star-rating-interactive {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stars-wrapper {
    display: flex;
    gap: 6px;
}

.star-rating-interactive .star {
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s;
}

.star-rating-interactive .star.filled {
    color: #FFB800;
}

.star-rating-interactive .star:hover {
    transform: scale(1.2);
}

.rating-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-average {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-secondary);
}

.rating-count {
    font-size: 14px;
    color: var(--color-text-gray);
}

.rating-message {
    font-size: 13px;
    color: var(--color-text-gray);
    margin: 0;
}

.rating-submitted {
    animation: ratingPulse 0.5s ease;
}

@keyframes ratingPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Sidebar Yıldızlar - Kompakt */
.post-meta-sidebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 5px;
}

.star-rating-compact {
    display: flex;
    align-items: center;
    gap: 4px;
}

.star-small {
    color: #ddd;
}

.star-small.filled {
    color: #FFB800;
}

.rating-compact-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-gray);
    margin-left: 4px;
}

/* İçindekiler Tablosu */
.table-of-contents {
    background: var(--color-light-gray);
    border: 2px solid var(--color-border);
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
}

.toc-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--color-primary);
}

.toc-header svg {
    color: var(--color-primary);
}

.toc-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--color-secondary);
    flex-grow: 1;
}

.toc-toggle {
    background: none;
    border: none;
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.table-of-contents.collapsed .toc-list {
    display: none;
}

.table-of-contents.collapsed .toc-toggle::before {
    content: '+';
}

.toc-list {
    list-style: none;
    counter-reset: toc-counter;
    padding: 0;
    margin: 0;
}

.toc-list li {
    counter-increment: toc-counter;
    margin-bottom: 10px;
}

.toc-list li::before {
    content: counter(toc-counter) ". ";
    font-weight: 700;
    color: var(--color-primary);
}

.toc-list li.toc-sub {
    margin-left: 25px;
    font-size: 15px;
}

.toc-list a {
    color: var(--color-text-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.toc-list a:hover {
    color: var(--color-primary);
}

/* Post Tags */
.post-tags {
    padding: 30px 60px;
    border-top: 2px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.post-tags strong {
    color: var(--color-secondary);
    font-size: 16px;
}

.post-tag {
    display: inline-block;
    background: var(--color-light-gray);
    color: var(--color-text-dark);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
}

.post-tag:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

/* Post Navigation */
.post-navigation {
    padding: 30px 60px;
    border-top: 2px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-previous a,
.nav-next a {
    display: block;
    padding: 20px;
    background: var(--color-light-gray);
    border-radius: 12px;
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.nav-previous a:hover,
.nav-next a:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
}

.nav-next {
    text-align: right;
}

/* Comments Wrapper */
.comments-wrapper {
    background: var(--color-white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.comments-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 30px;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment {
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
}

.comment:last-child {
    border-bottom: none;
}

.comment-author {
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 5px;
}

.comment-meta {
    font-size: 13px;
    color: var(--color-text-gray);
    margin-bottom: 10px;
}

.comment-content p {
    margin: 0;
    line-height: 1.6;
}

.comment-reply-link {
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.comment-form {
    margin-top: 30px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    font-size: 15px;
    margin-bottom: 15px;
    transition: border-color 0.3s;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.comment-form textarea {
    min-height: 120px;
    resize: vertical;
}

.comment-form .submit {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.comment-form .submit:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
}

/* Sidebar */
.single-post-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.single-post-sidebar .widget {
    background: var(--color-white);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.single-post-sidebar .widget-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--color-primary);
}

.single-post-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.single-post-sidebar li {
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
}

.single-post-sidebar li:last-child {
    border-bottom: none;
}

.single-post-sidebar a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.single-post-sidebar a:hover {
    color: var(--color-primary);
}

.widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
}

.widget-list li:last-child {
    border-bottom: none;
}

.widget-list a {
    display: block;
    color: var(--color-text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.widget-list a:hover {
    color: var(--color-primary);
}

.widget-list .post-date,
.widget-list .count {
    display: block;
    font-size: 12px;
    color: var(--color-text-gray);
    margin-top: 4px;
}

.widget-cta {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
}

.widget-cta .widget-title {
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.3);
}

.widget-cta p {
    color: var(--color-white);
    margin-bottom: 15px;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    display: inline-block;
    background: var(--color-light-gray);
    color: var(--color-text-dark);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s;
}

.tag-item:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 992px) {
    .single-post-layout {
        grid-template-columns: 1fr;
    }

    .single-post-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .post-header {
        padding: 30px 20px 20px;
    }

    .post-title {
        font-size: 28px;
    }

    .post-meta {
        flex-direction: column;
        gap: 10px;
    }

    .post-featured-image {
        height: 300px;
    }

    .post-content {
        padding: 30px 20px;
        font-size: 16px;
    }

    .post-tags,
    .post-navigation,
    .comments-area {
        padding: 20px;
    }

    .post-navigation {
        flex-direction: column;
    }
}