/* blog-detay.php sayfasina ait stiller. <head> icinde yuklenir. */
/* ----------------------------------------------
   1. TOP READING PROGRESS BAR
------------------------------------------------ */
.reading-progress-track {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 99999;
}

.reading-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00f2ff 0%, #38bdf8 50%, #8b5cf6 100%);
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.8);
    transition: width 0.1s linear;
}

/* ----------------------------------------------
   2. UNIVERSE WRAPPER & CONTAINER
------------------------------------------------ */
.blog-detail-wrapper {
    position: relative;
    background-color: #060810;
    background: radial-gradient(circle at 50% 0%, #111425 0%, #09090b 45%, #050608 100%);
    min-height: 100vh;
    overflow: hidden;
    color: #ffffff;
    font-family: var(--font-sans, 'Geist', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif);
    padding-bottom: 90px;
}

.blog-detail-container {
    position: relative;
    z-index: 5;
    max-width: 1080px;
    margin: 0 auto;
    padding: 25px 20px 0;
}

/* ----------------------------------------------
   3. BREADCRUMB
------------------------------------------------ */
.blog-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.84rem;
    color: #94a3b8;
    margin-bottom: 25px;
}

.blog-breadcrumb a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.blog-breadcrumb a:hover {
    color: #00f2ff;
}

.blog-breadcrumb .separator {
    font-size: 0.65rem;
    color: #475569;
}

.blog-breadcrumb .active-crumb {
    color: #cbd5e1;
    max-width: 400px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ----------------------------------------------
   4. HERO HEADER
------------------------------------------------ */
.detail-hero-header {
    margin-bottom: 35px;
}

.detail-badge-strip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.detail-chip-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 30px;
    background: rgba(0, 242, 255, 0.08);
    border: 1px solid rgba(0, 242, 255, 0.3);
    color: #00f2ff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 5px 12px;
    border-radius: 20px;
}

.meta-tag.tag-updated {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.25);
    color: #a7f3d0;
}

.detail-article-title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: #ffffff;
    margin-bottom: 18px;
}

.detail-lead-desc {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #94a3b8;
    margin-bottom: 28px;
}

.author-share-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding: 18px 24px;
    border-radius: 18px;
}

.author-profile-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar-glow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00f2ff, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.1rem;
    box-shadow: 0 0 18px rgba(0, 242, 255, 0.35);
}

.author-meta-info {
    display: flex;
    flex-direction: column;
}

.author-fullname {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
}

.author-subtitle {
    font-size: 0.78rem;
    color: #64748b;
}

.article-share-group {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.share-label {
    font-size: 0.82rem;
    color: #94a3b8;
    font-weight: 600;
    margin-right: 4px;
}

.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-wa:hover {
    background: #25d366;
    border-color: #25d366;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.share-tw:hover {
    background: #000000;
    border-color: #38bdf8;
    color: #38bdf8;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

.share-fb:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.4);
}

.share-copy:hover {
    background: #00f2ff;
    border-color: #00f2ff;
    color: #041320;
    box-shadow: 0 4px 15px rgba(0, 242, 255, 0.4);
}

.copy-toast {
    position: absolute;
    top: -38px;
    right: 0;
    background: #10b981;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    opacity: 0;
    transform: translateY(6px);
    transition: all 0.25s ease;
    pointer-events: none;
}

.copy-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* ----------------------------------------------
   5. FEATURED MEDIA BANNER
------------------------------------------------ */
.detail-featured-media {
    position: relative;
    width: 100%;
    max-height: 480px;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 40px;
}

.featured-main-img {
    width: 100%;
    height: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

.media-overlay-gradient {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(6, 8, 16, 0.6) 0%, transparent 40%);
    pointer-events: none;
}

/* ----------------------------------------------
   6. ARTICLE BODY & RICH TYPOGRAPHY
------------------------------------------------ */
.article-content-card {
    padding: 50px 60px;
    border-radius: 28px;
    margin-bottom: 50px;
}

.blog-rich-text {
    font-size: 1.12rem;
    line-height: 1.85;
    color: #e2e8f0;
}

.blog-rich-text p {
    margin-bottom: 26px;
}

.blog-rich-text h2 {
    font-size: 1.85rem;
    font-weight: 800;
    color: #ffffff;
    margin: 45px 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    letter-spacing: -0.02em;
}

.blog-rich-text h2::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #00f2ff, #6366f1);
}

.blog-rich-text h3 {
    font-size: 1.45rem;
    font-weight: 700;
    color: #f8fafc;
    margin: 35px 0 16px;
    letter-spacing: -0.015em;
}

.blog-rich-text ul, .blog-rich-text ol {
    margin: 20px 0 30px 24px;
}

.blog-rich-text li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 6px;
}

.blog-rich-text blockquote {
    margin: 35px 0;
    padding: 24px 30px;
    background: rgba(0, 242, 255, 0.04);
    border-left: 4px solid #00f2ff;
    border-radius: 0 16px 16px 0;
    font-style: italic;
    color: #e0f2fe;
    font-size: 1.15rem;
    position: relative;
}

.blog-rich-text strong {
    color: #ffffff;
    font-weight: 700;
}

.blog-rich-text a {
    color: #38bdf8;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.2s;
}

.blog-rich-text a:hover {
    color: #00f2ff;
}

.blog-rich-text img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 30px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* Etiketler */
.article-tags-wrap {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 25px 0;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tags-heading {
    font-size: 0.88rem;
    font-weight: 700;
    color: #cbd5e1;
}

.tags-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    font-size: 0.82rem;
    text-decoration: none;
    transition: all 0.2s;
}

.tag-chip:hover {
    background: rgba(0, 242, 255, 0.1);
    border-color: rgba(0, 242, 255, 0.3);
    color: #00f2ff;
    transform: translateY(-1px);
}

/* Alt Paylaşım */
.article-end-share {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 25px;
}

.end-share-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #94a3b8;
    font-size: 0.92rem;
}

.end-share-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-share-end {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-share-end.wa {
    background: rgba(37, 211, 102, 0.15);
    color: #4ade80;
    border-color: rgba(37, 211, 102, 0.3);
}

.btn-share-end.wa:hover {
    background: #25d366;
    color: #ffffff;
}

.btn-share-end.tw {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-share-end.tw:hover {
    background: #000000;
    border-color: #38bdf8;
}

.btn-share-end.copy {
    background: rgba(0, 242, 255, 0.1);
    color: #00f2ff;
    border-color: rgba(0, 242, 255, 0.3);
}

.btn-share-end.copy:hover {
    background: #00f2ff;
    color: #041320;
}

/* ----------------------------------------------
   7. RELATED POSTS SECTION
------------------------------------------------ */
.related-posts-section {
    margin-bottom: 50px;
}

.section-title-strip {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-desc {
    color: #64748b;
    font-size: 0.88rem;
    margin: 4px 0 0 0;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #38bdf8;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: transform 0.2s;
}

.btn-view-all:hover {
    color: #00f2ff;
    transform: translateX(3px);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.related-card {
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    text-decoration: none;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.related-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 242, 255, 0.35);
    box-shadow: 0 12px 30px rgba(0,0,0,0.6);
}

.card-link-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 2;
}

.rel-thumb-box {
    position: relative;
    width: 100%;
    padding-top: 56%;
    overflow: hidden;
}

.rel-thumb-box img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-card:hover .rel-thumb-box img {
    transform: scale(1.08);
}

.rel-readtime {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(9, 10, 15, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 10px;
}

.rel-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.rel-date {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 8px;
}

.rel-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.35;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rel-arrow {
    margin-top: auto;
    color: #38bdf8;
    font-size: 0.85rem;
    align-self: flex-end;
    transition: transform 0.2s;
}

.related-card:hover .rel-arrow {
    color: #00f2ff;
    transform: translateX(4px);
}

/* ----------------------------------------------
   8. COMMENTS SECTION
------------------------------------------------ */
.comments-container {
    padding: 40px;
    border-radius: 24px;
    margin-bottom: 50px;
}

.comments-main-title {
    font-size: 1.55rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comments-sub-title {
    color: #64748b;
    font-size: 0.88rem;
    margin: 0 0 25px 0;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.comment-item-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: rgba(10, 12, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
}

.comment-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #00f2ff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.comment-content-box {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.comment-user-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.comment-author {
    font-size: 0.98rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.comment-date {
    font-size: 0.78rem;
    color: #64748b;
}

.comment-text {
    font-size: 0.94rem;
    line-height: 1.6;
    color: #cbd5e1;
}

.empty-comments-box {
    text-align: center;
    padding: 40px 20px;
    background: rgba(10, 12, 20, 0.4);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    margin-bottom: 35px;
}

.empty-comm-icon {
    font-size: 2.5rem;
    color: #475569;
    margin-bottom: 12px;
}

.empty-comments-box h4 {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 6px;
}

.empty-comments-box p {
    font-size: 0.88rem;
    color: #64748b;
    margin: 0;
}

/* Form */
.comment-form-wrapper {
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.form-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-alert {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #f87171;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fbbf24;
}

.modern-comment-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.input-field-wrap label {
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 8px;
}

.input-field-wrap .req {
    color: #f43f5e;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.field-icon {
    position: absolute;
    left: 16px;
    color: #64748b;
    font-size: 0.95rem;
    pointer-events: none;
}

.field-icon-top {
    top: 16px;
}

.input-with-icon input,
.input-with-icon textarea {
    width: 100%;
    background: rgba(10, 12, 20, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 13px 18px 13px 44px;
    color: #ffffff;
    font-size: 0.92rem;
    font-family: inherit;
    outline: none;
    transition: all 0.25s ease;
}

.input-with-icon textarea {
    resize: vertical;
    min-height: 110px;
}

.input-with-icon input:focus,
.input-with-icon textarea:focus {
    border-color: #00f2ff;
    background: rgba(10, 12, 20, 0.95);
    box-shadow: 0 0 0 3px rgba(0, 242, 255, 0.18), 0 0 20px rgba(0, 242, 255, 0.12);
}

.btn-submit-comment {
    align-self: flex-start;
    cursor: pointer;
    border: none;
    font-family: inherit;
    margin-top: 6px;
}

/* ----------------------------------------------
   9. DETAIL BOTTOM CTA
------------------------------------------------ */
.detail-bottom-cta {
    padding: 48px;
    border-radius: 28px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 242, 255, 0.25);
}

.cta-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.glow-cyan {
    width: 320px;
    height: 320px;
    background: rgba(0, 242, 255, 0.18);
    top: -80px;
    left: -80px;
}

.glow-purple {
    width: 300px;
    height: 300px;
    background: rgba(139, 92, 246, 0.22);
    bottom: -60px;
    right: -60px;
}

.cta-inner-grid {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 36px;
}

.cta-icon-badge {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.15), rgba(99, 102, 241, 0.25));
    border: 1px solid rgba(0, 242, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #00f2ff;
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(0, 242, 255, 0.25);
}

.cta-content {
    flex-grow: 1;
}

.cta-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 10px 0;
    letter-spacing: -0.02em;
}

.cta-desc {
    color: #94a3b8;
    font-size: 0.98rem;
    line-height: 1.65;
    margin: 0 0 24px 0;
    max-width: 720px;
}

.cta-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ----------------------------------------------
   10. RESPONSIVE MEDIA QUERIES
------------------------------------------------ */
@media (max-width: 992px) {
    .detail-article-title {
        font-size: 2.2rem;
    }

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

    .related-grid {
        grid-template-columns: 1fr;
    }

    .cta-inner-grid {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .blog-detail-container {
        padding: 15px 16px 0;
    }

    .detail-article-title {
        font-size: 1.8rem;
    }

    .detail-lead-desc {
        font-size: 1rem;
    }

    .author-share-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 16px;
    }

    .article-share-group {
        width: 100%;
        justify-content: flex-start;
    }

    .article-content-card {
        padding: 24px 18px;
        border-radius: 20px;
    }

    .blog-rich-text {
        font-size: 1.02rem;
        line-height: 1.75;
    }

    .form-grid-2 {
        grid-template-columns: 1fr;
    }

    .comments-container {
        padding: 24px 18px;
    }

    .detail-bottom-cta {
        padding: 30px 20px;
    }

    .cta-title {
        font-size: 1.5rem;
    }
}
