/* ================================================
   Ha Single Post — HanTema v1.0.0
   Prefix: hasp-   Max width: 1300px
   ================================================ */

.hasp-wrap {
    --hasp-max:        1300px;
    --hasp-accent:     #C8A96E;
    --hasp-accent-lt:  #E8D9B8;
    --hasp-dark:       #1A1A1A;
    --hasp-text:       #2C2C2C;
    --hasp-sub:        #5C574F;
    --hasp-muted:      #7B7670;
    --hasp-bg:         #F5F0E8;
    --hasp-card-bg:    #ffffff;
    --hasp-border:     #E8E2D8;
    --hasp-sidebar-bg: #FAFAF5;
    --hasp-radius:     16px;
    --hasp-radius-sm:  10px;
    --hasp-sidebar-w:  300px;
    box-sizing: border-box;
    font-family: inherit;
    width: 100%;
}
.hasp-wrap *, .hasp-wrap *::before, .hasp-wrap *::after {
    box-sizing: inherit;
}

/* ── Container ── */
.hasp-container {
    max-width: var(--hasp-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ══════════════════════════════
   BREADCRUMB
══════════════════════════════ */
.hasp-breadcrumb-bar {
    padding: 14px 0 0;
    margin-bottom: 28px;
}
.hasp-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 13px;
    color: var(--hasp-muted);
    list-style: none;
    padding: 0;
    margin: 0;
}
.hasp-breadcrumb li { display: flex; align-items: center; gap: 4px; }
.hasp-breadcrumb a {
    color: var(--hasp-muted);
    text-decoration: none;
    transition: color .2s;
}
.hasp-breadcrumb a:hover { color: var(--hasp-accent); }
.hasp-breadcrumb-sep {
    font-size: 10px;
    opacity: .5;
    flex-shrink: 0;
}
.hasp-breadcrumb .current {
    color: var(--hasp-accent);
    font-weight: 600;
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ══════════════════════════════
   LAYOUT: İçerik + Sidebar
══════════════════════════════ */
.hasp-layout {
    display: grid;
    grid-template-columns: 1fr var(--hasp-sidebar-w);
    gap: 40px;
    align-items: start;
}

/* ══════════════════════════════
   ANA İÇERİK
══════════════════════════════ */
.hasp-main { min-width: 0; }

/* ÖNCEKI / SONRAKI NAVİGASYON */
.hasp-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--hasp-border);
}
.hasp-post-nav-item {
    background: var(--hasp-card-bg);
    border: 1px solid var(--hasp-border);
    border-radius: var(--hasp-radius);
    padding: 18px 20px;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: border-color .22s, box-shadow .22s, transform .22s;
}
.hasp-post-nav-item:hover {
    border-color: var(--hasp-accent);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
    color: inherit;
    text-decoration: none;
}
.hasp-post-nav-item.next { flex-direction: row-reverse; text-align: right; }
.hasp-post-nav-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--hasp-accent-lt);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 13px;
    color: var(--hasp-accent);
    transition: background .2s;
}
.hasp-post-nav-item:hover .hasp-post-nav-arrow { background: var(--hasp-accent); color: #fff; }
.hasp-post-nav-label { font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--hasp-muted); margin-bottom: 4px; }
.hasp-post-nav-title { font-size: 14px; font-weight: 700; color: var(--hasp-dark); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* YORUM BÖLÜMÜ */
.hasp-comments-wrap {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--hasp-border);
}
.hasp-comments-title {
    font-size: 22px;
    font-weight: 900;
    color: var(--hasp-dark);
    margin: 0 0 24px;
}

/* WP Yorumları özelleştir */
.hasp-comments-wrap .comment-list { list-style: none; padding: 0; margin: 0 0 32px; }
.hasp-comments-wrap .comment { padding: 20px 0; border-bottom: 1px solid var(--hasp-border); }
.hasp-comments-wrap .comment:last-child { border-bottom: none; }
.hasp-comments-wrap .comment-author { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.hasp-comments-wrap .comment-author img { border-radius: 50%; width: 40px; height: 40px; }
.hasp-comments-wrap .comment-author .fn { font-weight: 700; font-size: 14px; color: var(--hasp-dark); }
.hasp-comments-wrap .comment-meta { font-size: 12px; color: var(--hasp-muted); }
.hasp-comments-wrap .comment-content p { font-size: 14px; color: var(--hasp-sub); line-height: 1.7; margin: 0; }
.hasp-comments-wrap .reply a { font-size: 12px; color: var(--hasp-accent); font-weight: 700; text-decoration: none; margin-top: 8px; display: inline-block; }

/* Yorum formu */
.hasp-comment-form { }
.hasp-comment-form-title { font-size: 18px; font-weight: 800; color: var(--hasp-dark); margin: 0 0 20px; }
.hasp-comments-wrap .comment-form p { margin-bottom: 14px; }
.hasp-comments-wrap .comment-form input[type="text"],
.hasp-comments-wrap .comment-form input[type="email"],
.hasp-comments-wrap .comment-form input[type="url"],
.hasp-comments-wrap .comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--hasp-border);
    border-radius: var(--hasp-radius-sm);
    font-size: 14px;
    color: var(--hasp-text);
    background: var(--hasp-card-bg);
    font-family: inherit;
    transition: border-color .2s;
    outline: none;
}
.hasp-comments-wrap .comment-form input:focus,
.hasp-comments-wrap .comment-form textarea:focus { border-color: var(--hasp-accent); }
.hasp-comments-wrap .comment-form textarea { height: 130px; resize: vertical; }
.hasp-comments-wrap .comment-form .form-submit input[type="submit"] {
    background: var(--hasp-dark);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 13px 28px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background .22s;
    font-family: inherit;
}
.hasp-comments-wrap .comment-form .form-submit input:hover { background: #333; }

/* ══════════════════════════════
   SIDEBAR
══════════════════════════════ */
.hasp-sidebar { display: flex; flex-direction: column; gap: 20px; }

/* Genel widget kutusu */
.hasp-sidebar-box {
    background: var(--hasp-sidebar-bg);
    border: 1px solid var(--hasp-border);
    border-radius: var(--hasp-radius);
    padding: 22px 20px;
}
.hasp-sidebar-box-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--hasp-dark);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--hasp-accent);
    display: flex;
    align-items: center;
    gap: 8px;
}
.hasp-sidebar-box-title i { font-size: 13px; color: var(--hasp-accent); }

/* ARAMA */
.hasp-search-form {
    display: flex;
    gap: 8px;
}
.hasp-search-input {
    flex: 1;
    padding: 10px 14px;
    border: 1.5px solid var(--hasp-border);
    border-radius: var(--hasp-radius-sm);
    font-size: 14px;
    color: var(--hasp-text);
    background: var(--hasp-card-bg);
    outline: none;
    font-family: inherit;
    transition: border-color .2s;
}
.hasp-search-input:focus { border-color: var(--hasp-accent); }
.hasp-search-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--hasp-radius-sm);
    background: var(--hasp-dark);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    transition: background .2s;
}
.hasp-search-btn:hover { background: var(--hasp-accent); }

/* KATEGORİLER */
.hasp-cat-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.hasp-cat-item {}
.hasp-cat-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    border-radius: var(--hasp-radius-sm);
    text-decoration: none;
    color: var(--hasp-sub);
    font-size: 14px;
    font-weight: 500;
    transition: background .2s, color .2s;
}
.hasp-cat-link:hover { background: var(--hasp-accent-lt); color: var(--hasp-dark); }
.hasp-cat-link.active { background: var(--hasp-accent); color: var(--hasp-dark); font-weight: 700; }
.hasp-cat-count {
    font-size: 11px;
    font-weight: 700;
    background: var(--hasp-border);
    color: var(--hasp-muted);
    padding: 2px 8px;
    border-radius: 20px;
    transition: background .2s, color .2s;
}
.hasp-cat-link:hover .hasp-cat-count { background: var(--hasp-accent); color: var(--hasp-dark); }
.hasp-cat-link.active .hasp-cat-count { background: rgba(0,0,0,0.15); color: #fff; }

/* SON YAZILAR */
.hasp-recent-list { display: flex; flex-direction: column; gap: 14px; }
.hasp-recent-item { display: flex; gap: 12px; align-items: center; }
.hasp-recent-img { width: 60px; height: 52px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: var(--hasp-accent-lt); }
.hasp-recent-img-ph { width: 60px; height: 52px; border-radius: 8px; background: var(--hasp-accent-lt); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 18px; color: var(--hasp-accent); }
.hasp-recent-title { font-size: 13px; font-weight: 700; color: var(--hasp-dark); line-height: 1.4; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .2s; }
.hasp-recent-title:hover { color: var(--hasp-accent); }
.hasp-recent-date { font-size: 11px; color: var(--hasp-muted); margin-top: 3px; display: block; }

/* WHATSAPP BUTONU */
.hasp-wa-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #25D366;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 20px;
    border-radius: var(--hasp-radius);
    text-decoration: none;
    transition: background .22s, transform .18s, box-shadow .22s;
    box-shadow: 0 4px 16px rgba(37,211,102,.25);
    line-height: 1;
}
.hasp-wa-btn:hover { background: #20bd5a; color: #fff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,211,102,.35); }
.hasp-wa-btn i { font-size: 20px !important; flex-shrink: 0; line-height: 1 !important; display: block !important; }

/* TELEFON BUTONU */
.hasp-phone-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--hasp-dark);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 20px;
    border-radius: var(--hasp-radius);
    text-decoration: none;
    transition: background .22s, transform .18s;
    line-height: 1;
}
.hasp-phone-btn:hover { background: #333; color: #fff; transform: translateY(-2px); }
.hasp-phone-btn i { font-size: 16px !important; flex-shrink: 0; line-height: 1 !important; display: block !important; }

.hasp-btn-group { display: flex; flex-direction: column; gap: 10px; }
.hasp-btn-sub { font-size: 11px; opacity: .75; font-weight: 400; display: block; margin-top: 2px; }

/* TAGS */
.hasp-tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.hasp-tag {
    background: var(--hasp-card-bg);
    border: 1px solid var(--hasp-border);
    color: var(--hasp-sub);
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    text-decoration: none;
    transition: background .2s, border-color .2s, color .2s;
}
.hasp-tag:hover { background: var(--hasp-accent-lt); border-color: var(--hasp-accent); color: var(--hasp-dark); }

/* ══════════════════════════════
   ÖZEL POST HEADER (Breadcrumb + Başlık + Meta + Görsel)
══════════════════════════════ */
.hasp-post-header { margin-bottom: 32px; }

/* Kategori badge */
.hasp-post-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.hasp-post-cat-badge {
    background: var(--hasp-accent-lt);
    color: var(--hasp-accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 30px;
    text-decoration: none;
    transition: background .2s;
}
.hasp-post-cat-badge:hover { background: var(--hasp-accent); color: #fff; }

/* Başlık */
.hasp-post-title {
    font-size: 36px;
    font-weight: 900;
    color: var(--hasp-dark);
    line-height: 1.2;
    margin: 0 0 16px;
    word-break: break-word;
}

/* Meta bar */
.hasp-post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--hasp-muted);
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--hasp-border);
}
.hasp-post-meta-item { display: flex; align-items: center; gap: 6px; }
.hasp-post-meta-item i { font-size: 13px !important; color: var(--hasp-accent); flex-shrink: 0; }

/* ÖNE ÇIKAN GÖRSEL */
.hasp-featured-img {
    width: 100%;
    border-radius: var(--hasp-radius);
    object-fit: cover;
    display: block;
    margin-bottom: 32px;
}

/* POST İÇERİĞİ TİPOGRAFİ */
.hasp-post-content {
    font-size: 16px;
    color: var(--hasp-text);
    line-height: 1.85;
}
.hasp-post-content h1, .hasp-post-content h2, .hasp-post-content h3,
.hasp-post-content h4, .hasp-post-content h5, .hasp-post-content h6 {
    color: var(--hasp-dark);
    font-weight: 800;
    line-height: 1.3;
    margin: 32px 0 14px;
}
.hasp-post-content h2 { font-size: 26px; }
.hasp-post-content h3 { font-size: 22px; }
.hasp-post-content h4 { font-size: 18px; }
.hasp-post-content p { margin: 0 0 18px; }
.hasp-post-content a { color: var(--hasp-accent); text-decoration: underline; }
.hasp-post-content a:hover { color: var(--hasp-dark); }
.hasp-post-content ul, .hasp-post-content ol { padding-left: 24px; margin-bottom: 18px; }
.hasp-post-content li { margin-bottom: 6px; color: var(--hasp-sub); }
.hasp-post-content blockquote {
    border-left: 4px solid var(--hasp-accent);
    background: var(--hasp-accent-lt);
    padding: 16px 20px;
    border-radius: 0 var(--hasp-radius-sm) var(--hasp-radius-sm) 0;
    margin: 24px 0;
    font-style: italic;
    color: var(--hasp-sub);
}
.hasp-post-content img { max-width: 100%; height: auto; border-radius: var(--hasp-radius-sm); }
.hasp-post-content pre {
    background: var(--hasp-dark);
    color: #e2e8f0;
    padding: 20px;
    border-radius: var(--hasp-radius-sm);
    overflow-x: auto;
    font-size: 14px;
    margin-bottom: 18px;
}
.hasp-post-content code {
    background: var(--hasp-accent-lt);
    color: var(--hasp-accent);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: .9em;
}
.hasp-post-content table { width: 100%; border-collapse: collapse; margin-bottom: 18px; }
.hasp-post-content th, .hasp-post-content td { border: 1px solid var(--hasp-border); padding: 10px 14px; font-size: 14px; }
.hasp-post-content th { background: var(--hasp-accent-lt); font-weight: 700; }

/* ── PAYLAŞIM BUTONLARI ── */
.hasp-share-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 20px 0;
    border-top: 1px solid var(--hasp-border);
    border-bottom: 1px solid var(--hasp-border);
    margin: 32px 0 0;
}
.hasp-share-label { font-size: 13px; font-weight: 700; color: var(--hasp-muted); margin-right: 4px; }
.hasp-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 30px;
    text-decoration: none;
    transition: transform .18s, opacity .18s;
}
.hasp-share-btn:hover { transform: translateY(-2px); opacity: .85; }
.hasp-share-btn.wa    { background: #25D366; color: #fff; }
.hasp-share-btn.fb    { background: #1877F2; color: #fff; }
.hasp-share-btn.tw    { background: #000; color: #fff; }
.hasp-share-btn.li    { background: #0A66C2; color: #fff; }
.hasp-share-btn i { font-size: 14px !important; flex-shrink: 0; display: block !important; line-height: 1 !important; }

/* ══════════════════════════════
   TABLET ≤1024px
══════════════════════════════ */
@media (max-width: 1024px) {
    .hasp-layout { grid-template-columns: 1fr 260px; gap: 28px; }
    .hasp-post-title { font-size: 28px !important; }
}

/* ══════════════════════════════
   MOBİL ≤767px — Sidebar gizle
══════════════════════════════ */
@media (max-width: 767px) {
    .hasp-layout { grid-template-columns: 1fr; }
    .hasp-sidebar { display: none !important; }  /* Sidebar gizli */

    /* Mobilde sidebar butonlarını en alta taşı */
    .hasp-mobile-cta {
        display: flex !important;
        gap: 10px;
        margin-top: 28px;
        flex-direction: column;
    }

    .hasp-post-title    { font-size: 22px !important; }
    .hasp-post-meta     { gap: 10px; font-size: 12px; }
    .hasp-container     { padding: 0 16px; }
    .hasp-breadcrumb    { font-size: 12px; }
    .hasp-post-nav      { grid-template-columns: 1fr; }
    .hasp-post-nav-item.next { flex-direction: row; text-align: left; }
    .hasp-post-content  { font-size: 15px; }
    .hasp-post-content h2 { font-size: 20px; }
    .hasp-post-content h3 { font-size: 18px; }
    .hasp-share-bar     { gap: 8px; }
}

/* Mobil CTA varsayılan gizli */
.hasp-mobile-cta { display: none; }

/* ══════════════════════════════
   KÜÇÜK MOBİL ≤480px
══════════════════════════════ */
@media (max-width: 480px) {
    .hasp-post-title { font-size: 20px !important; }
    .hasp-post-content { font-size: 14px; }
    .hasp-featured-img { border-radius: 10px; }
}

/* ══════════════════════════════
   ELEMENTOR EDİTÖR — Sidebar göster
══════════════════════════════ */
.elementor-editor-active .hasp-sidebar,
.elementor-editor-preview .hasp-sidebar {
    display: flex !important;
}
.elementor-editor-active .hasp-mobile-cta,
.elementor-editor-preview .hasp-mobile-cta {
    display: none !important;
}
