/* =========================================================
   Teknoblog – Google Preferred Sources  |  frontend.css
   ========================================================= */

:root {
    --tps-orange:    #F04A0A;
    --tps-orange-dk: #c93a05;
    --tps-blue:      #0A64F0;
    --tps-white:     #ffffff;
    --tps-text:      #1a1a1a;
    --tps-muted:     #555;
    --tps-radius:    10px;
    --tps-shadow:    0 4px 24px rgba(0,0,0,.15);
}

/* ── Ortak buton ──────────────────────────────────────── */
.tps-btn {
    display:         inline-flex;
    align-items:     center;
    gap:             8px;
    padding:         11px 20px;
    border-radius:   var(--tps-radius);
    font-size:       .9rem;
    font-weight:     600;
    text-decoration: none;
    cursor:          pointer;
    transition:      background .18s, transform .12s, box-shadow .18s;
    white-space:     nowrap;
    border:          none;
    outline:         none;
    line-height:     1.2;
}
.tps-btn:hover  { transform: translateY(-1px); }
.tps-btn:active { transform: translateY(0); }

/* Teknoblog stili */
.tps-btn-teknoblog {
    background:  var(--tps-orange);
    color:       var(--tps-white);
    box-shadow:  0 2px 8px rgba(240,74,10,.35);
}
.tps-btn-teknoblog:hover {
    background:  var(--tps-orange-dk);
    color:       var(--tps-white);
    box-shadow:  0 4px 14px rgba(240,74,10,.45);
}

/* Google stili */
.tps-btn-google {
    background:  var(--tps-white);
    color:       var(--tps-text);
    border:      1.5px solid #dadce0;
    box-shadow:  0 1px 3px rgba(0,0,0,.1);
}
.tps-btn-google:hover {
    background:  #f8f9fa;
    box-shadow:  0 2px 8px rgba(0,0,0,.15);
}
.tps-btn-google::before {
    content: '';
    display: inline-block;
    width:   18px;
    height:  18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23FBBC05' d='M12 2l2.4 7.4H22l-6.2 4.5 2.4 7.4L12 17l-6.2 4.3 2.4-7.4L2 9.4h7.6z'/%3E%3C/svg%3E") center/contain no-repeat;
    flex-shrink: 0;
}

/* Tam genişlik (widget için) */
.tps-btn-full {
    width:           100%;
    justify-content: center;
}

/* ── Sticky Banner ────────────────────────────────────── */
.tps-sticky {
    position:   fixed;
    bottom:     0;
    left:       0;
    right:      0;
    z-index:    99999;
    background: var(--tps-white);
    box-shadow: 0 -4px 20px rgba(0,0,0,.12);
    border-top: 3px solid var(--tps-orange);
    transition: transform .35s cubic-bezier(.22,.68,0,1.2), opacity .3s;
}
.tps-sticky.tps-hidden {
    transform: translateY(100%);
    opacity:   0;
    pointer-events: none;
}
.tps-sticky.tps-visible {
    transform: translateY(0);
    opacity:   1;
}

.tps-sticky-inner {
    max-width:  860px;
    margin:     0 auto;
    padding:    14px 20px;
    display:    flex;
    align-items: center;
    gap:        16px;
}

.tps-sticky-icon {
    flex-shrink: 0;
    color:       var(--tps-orange);
    display:     flex;
}
.tps-sticky-icon svg { width: 28px; height: 28px; }

.tps-sticky-text {
    flex:        1;
    margin:      0;
    font-size:   .88rem;
    line-height: 1.4;
    color:       var(--tps-muted);
}

.tps-sticky-actions {
    display:     flex;
    align-items: center;
    gap:         10px;
    flex-shrink: 0;
}

.tps-sticky-close {
    background:  none;
    border:      none;
    cursor:      pointer;
    font-size:   1.4rem;
    line-height: 1;
    color:       #aaa;
    padding:     4px 6px;
    transition:  color .15s;
}
.tps-sticky-close:hover { color: var(--tps-text); }

/* ── Widget ───────────────────────────────────────────── */
.tps-widget-body {
    padding:    4px 0 8px;
}
.tps-widget-icon {
    color:      var(--tps-orange);
    margin-bottom: 8px;
}
.tps-widget-icon svg { width: 32px; height: 32px; }

.tps-widget-text {
    font-size:   .875rem;
    line-height: 1.55;
    color:       var(--tps-muted);
    margin:      0 0 14px;
}

/* ── Mobil ────────────────────────────────────────────── */
@media (max-width: 600px) {
    .tps-sticky-inner {
        flex-wrap:  wrap;
        gap:        10px;
        padding:    12px 16px;
    }
    .tps-sticky-text { font-size: .82rem; }
    .tps-sticky-actions { width: 100%; justify-content: space-between; }
    .tps-btn { font-size: .82rem; padding: 9px 16px; }
}

/* ── Makale İçi Inline CTA ────────────────────────────────── */

.tps-inline {
    margin: 32px 0;
    border-radius: var(--tps-radius);
    border: 2px solid #f0f0f0;
    background: #fafafa;
}

/* Kart / Widget stili */
.tps-inline-widget {
    display:        flex;
    align-items:    flex-start;
    gap:            18px;
    padding:        24px;
}
.tps-inline-widget-icon {
    flex-shrink: 0;
    color:       var(--tps-orange);
    margin-top:  2px;
}
.tps-inline-widget-icon svg { width: 36px; height: 36px; }

.tps-inline-widget-body {
    flex: 1;
}
.tps-inline-widget-body .tps-inline-title {
    display:     block;
    font-size:   1rem;
    font-weight: 700;
    color:       var(--tps-text);
    margin-bottom: 6px;
}
.tps-inline-widget-body .tps-inline-text {
    display:     block;
    font-size:   .875rem;
    color:       var(--tps-muted);
    line-height: 1.55;
    margin:      0 0 14px;
}

/* Banner / Yatay stili */
.tps-inline-banner {
    display:     flex;
    align-items: center;
    gap:         14px;
    padding:     16px 20px;
    border-left: 4px solid var(--tps-orange);
    border-radius: 0 var(--tps-radius) var(--tps-radius) 0;
    background:  #fff8f5;
}
.tps-inline-banner .tps-inline-icon {
    flex-shrink: 0;
    color:       var(--tps-orange);
}
.tps-inline-banner .tps-inline-body {
    flex:        1;
    display:     flex;
    flex-wrap:   wrap;
    align-items: center;
    gap:         4px 10px;
}
.tps-inline-banner .tps-inline-title {
    font-weight: 700;
    font-size:   .9rem;
    color:       var(--tps-text);
    white-space: nowrap;
}
.tps-inline-banner .tps-inline-text {
    font-size:   .85rem;
    color:       var(--tps-muted);
}
.tps-inline-banner .tps-btn {
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .tps-inline-widget { flex-direction: column; gap: 12px; padding: 18px; }
    .tps-inline-banner { flex-wrap: wrap; }
    .tps-inline-banner .tps-btn { width: 100%; justify-content: center; margin-top: 6px; }
}

/* ── Google Resmi Badge ───────────────────────────────── */
.tps-badge-link {
    display:     inline-block;
    line-height: 0;
    flex-shrink: 0;
    border:      none !important;
    background:  none !important;
    padding:     0 !important;
}
/* Tema img reset'lerini geçersiz kıl */
.tps-badge-link img {
    display:    block !important;
    width:      169px !important;
    height:     53px !important;
    max-width:  169px !important;
    margin:     0 !important;
    padding:    0 !important;
    border:     none !important;
    box-shadow: none !important;
}
/* Widget'ta badge blok göster */
.tps-widget-body .tps-badge-link,
.tps-inline-widget-body .tps-badge-link {
    display:    block;
    margin-top: 4px;
}
