[x-cloak] {
    display: none !important;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Text Clamp */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Breaking News */
@keyframes ticker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.animate-ticker {
    animation: ticker 40s linear infinite;
}

.animate-ticker:hover {
    animation-play-state: paused;
}

/* Article Content */
.article-content {
    font-size: 1.125rem;
    line-height: 1.9;
    color: #1f2937;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    color: #111827;
}

.article-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 2rem 0 0.75rem;
    color: #1f2937;
}

.article-content ul,
.article-content ol {
    margin: 1.25rem 0;
    padding-left: 1.75rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content a {
    color: var(--primary-color, #dc2626);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-content a:hover {
    color: var(--secondary-color, #b91c1c);
}

.article-content blockquote {
    border-left: 4px solid var(--primary-color, #dc2626);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: #fef2f2;
    font-style: italic;
    color: #4b5563;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 2rem 0;
    background: #fef2f2;
}

.article-content figure {
    margin: 2rem 0;
}

.article-content figcaption {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.5rem;
    text-align: center;
}

/* Transitions */
.transition-base {
    transition: all 0.2s ease;
}

/* Focus States */
input:focus,
textarea:focus,
select:focus,
button:focus {
    outline: none;
}

/* Image Lazy Loading */
img[loading="lazy"] {
    background: #f3f4f6;
}

/* HABER DETAY PAYLAŞ SATIRI (CRITICAL) */
.article-share-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    flex-wrap: wrap !important;
    width: 100% !important;
}

.article-share-row .share-title {
    font-weight: 700 !important;
    margin: 0 !important;
    white-space: nowrap !important;
}

.article-share-row .post-share {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-right: auto !important;
}

.article-share-row .font-size-box {
    display: flex !important;
    gap: 6px !important;
    margin-left: auto !important;
}

/* GLOBAL SOCIAL SHARE STYLES - BULLETPROOF */
.share-btn {
    width: 34px !important;
    height: 34px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    color: white !important;
    text-decoration: none !important;
    transition: all 0.2s ease-in-out !important;
    margin: 0 4px !important;
    border: none !important;
    outline: none !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.share-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.share-btn i {
    font-size: 16px !important;
    color: white !important;
}

.share-btn.facebook {
    background-color: #1877f2 !important;
}

.share-btn.twitter {
    background-color: #000000 !important;
}

.share-btn.whatsapp {
    background-color: #25d366 !important;
}

.share-btn.telegram {
    background-color: #0088cc !important;
}

.share-btn.copy-link {
    background-color: #64748b !important;
    cursor: pointer;
}

.article-meta-share {
    display: inline-flex !important;
    align-items: center !important;
    margin-left: auto !important;
    gap: 5px !important;
}

.share-label {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #666 !important;
    margin-right: 8px !important;
    text-transform: uppercase;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .article-meta {
        flex-wrap: wrap !important;
    }
    .article-meta-share {
        width: 100% !important;
        margin-top: 10px !important;
        margin-left: 0 !important;
        justify-content: flex-start !important;
    }
}

/* ===== Haber içeriği: editördeki şablon, ilgili haber ve içindekiler kutuları ===== */
.article-content .hb-box {
    margin: 20px 0;
    padding: 14px 18px;
    border-left: 4px solid #3b82f6;
    border-radius: 0 8px 8px 0;
    background: #eff6ff;
}

.article-content .hb-box p:last-child {
    margin-bottom: 0;
}

.article-content .hb-box-warning {
    border-left-color: #f59e0b;
    background: #fffbeb;
}

.article-content .hb-box-note {
    border-left-color: #dc2626;
    background: #fef2f2;
}

.article-content .hb-related {
    margin: 20px 0;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #111827;
    border-radius: 6px;
    background: #f9fafb;
}

.article-content .hb-related-label {
    display: block;
    margin-bottom: 2px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .03em;
    color: #6b7280;
    text-transform: uppercase;
}

.article-content .hb-related a {
    font-weight: 700;
    color: #111827;
    text-decoration: none;
}

.article-content .hb-related a:hover {
    text-decoration: underline;
}

.article-content .hb-toc {
    margin: 20px 0;
    padding: 14px 18px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
}

.article-content .hb-toc > strong {
    display: block;
    margin-bottom: 6px;
}

.article-content .hb-toc ul {
    list-style: disc;
    margin: 0;
    padding-left: 22px;
}

.article-content .hb-toc ul ul {
    list-style: circle;
}

/* İçindekiler bağlantısı: başlık sabit üst menünün altında kalmasın */
.article-content [id^="bolum-"] {
    scroll-margin-top: 90px;
}

/* Instagram / X gönderisi (editördeki Instagram / X düğmesi; iframe, sabit yükseklik) */
.article-content .hb-social {
    margin: 24px 0;
    text-align: center;
}

.article-content .hb-social iframe {
    max-width: 100%;
    margin: 0;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
}

/* Üst bant: piyasa + hava durumu (resources/views/public/partials/market-bar.blade.php).
   Yükseklik sabit: sayfa açılırken içerik kaymaz. Mobilde piyasa kalemleri yana kayar. */
.hb-mbar {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    font-family: Inter, system-ui, -apple-system, sans-serif;
    color: #111827;
    position: relative;
    z-index: 60;
}

.hb-mbar-in {
    height: 44px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.hb-mbar-list {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
}

.hb-mbar-list::-webkit-scrollbar {
    display: none;
}

.hb-mbar-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    white-space: nowrap;
    font-size: 15px;
    line-height: 1;
    border-right: 1px solid #e5e7eb;
}

.hb-mbar-item:first-child {
    padding-left: 0;
}

.hb-mbar-item:last-child {
    border-right: 0;
}

.hb-mbar-arrow {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.hb-mbar-up .hb-mbar-arrow {
    color: #16a34a;
}

.hb-mbar-down .hb-mbar-arrow {
    color: #dc2626;
}

.hb-mbar-flat .hb-mbar-arrow {
    color: #9ca3af;
}

.hb-mbar-label {
    font-weight: 700;
}

.hb-mbar-val {
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.hb-mbar-weather {
    position: relative;
    flex-shrink: 0;
}

.hb-mbar-wbtn {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 4px 0 8px;
    border: 0;
    border-radius: 6px;
    background: none;
    color: inherit;
    font: inherit;
    font-size: 15px;
    cursor: pointer;
}

.hb-mbar-wbtn:hover,
.hb-mbar-wbtn[aria-expanded="true"] {
    background: #f3f4f6;
}

.hb-mbar-city {
    font-weight: 700;
}

.hb-mbar-temp {
    font-weight: 500;
    min-width: 2.2em;
    font-variant-numeric: tabular-nums;
}

.hb-mbar-wicon {
    display: inline-flex;
    width: 22px;
    height: 22px;
}

.hb-mbar-wicon svg {
    width: 22px;
    height: 22px;
}

.hb-mbar-chev {
    width: 16px;
    height: 16px;
    transition: transform .15s;
}

.hb-mbar-wbtn[aria-expanded="true"] .hb-mbar-chev {
    transform: rotate(180deg);
}

.hb-mbar-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    width: 220px;
    padding: 8px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .12);
}

.hb-mbar-menu[hidden] {
    display: none;
}

.hb-mbar-search {
    width: 100%;
    height: 34px;
    padding: 0 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

.hb-mbar-cities {
    max-height: 280px;
    overflow-y: auto;
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
}

.hb-mbar-cities li {
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

.hb-mbar-cities li[hidden] {
    display: none;
}

.hb-mbar-cities li:hover {
    background: #f3f4f6;
}

.hb-mbar-cities li[aria-selected="true"] {
    font-weight: 700;
    color: var(--color-primary, #dc2626);
}

@media (max-width: 767px) {
    .hb-mbar-in {
        height: 38px;
        gap: 8px;
    }

    .hb-mbar-item {
        padding: 0 10px;
        font-size: 13px;
        gap: 4px;
    }

    .hb-mbar-arrow {
        width: 16px;
        height: 16px;
    }

    .hb-mbar-wbtn {
        font-size: 13px;
        gap: 4px;
        padding: 0 2px 0 6px;
    }

    .hb-mbar-wicon,
    .hb-mbar-wicon svg {
        width: 18px;
        height: 18px;
    }

    .hb-mbar-city {
        max-width: 84px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
