/* Backlink Paket Planlayıcı — sade, premium, mavi-beyaz */
:root {
    --bpp-primary: #093c5d;
    --bpp-primary-soft: rgba(9, 60, 93, 0.08);
    --bpp-border: rgba(9, 60, 93, 0.14);
    --bpp-good: #1a7d4b;
    --bpp-muted: #5f7686;
    --bpp-warn-bg: rgba(180, 83, 9, 0.1);
    --bpp-warn-border: rgba(180, 83, 9, 0.25);
}

.bpp-input,
.bpp-select {
    border: 1px solid var(--bpp-border);
    border-radius: 0.75rem;
    background: #fff;
    color: #0b2233;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.bpp-input:focus,
.bpp-select:focus {
    border-color: rgba(9, 60, 93, 0.45);
    box-shadow: 0 0 0 3px rgba(9, 60, 93, 0.1);
}

.bpp-select { cursor: pointer; }

.bpp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.12s;
    text-decoration: none;
    white-space: nowrap;
}

.bpp-btn:active { transform: scale(0.98); }

.bpp-btn--sm { padding: 0.5rem 0.85rem; font-size: 13px; }
.bpp-btn--block { width: 100%; }

.bpp-btn--primary {
    padding: 0.7rem 1.15rem;
    font-size: 14px;
    background: var(--bpp-primary);
    color: #fff;
    box-shadow: 0 1px 2px rgba(9, 60, 93, 0.12), 0 4px 12px rgba(9, 60, 93, 0.14);
}
.bpp-btn--primary:hover {
    background: #0b476e;
    box-shadow: 0 2px 4px rgba(9, 60, 93, 0.14), 0 6px 16px rgba(9, 60, 93, 0.18);
}

.bpp-btn--outline {
    padding: 0.7rem 1.15rem;
    font-size: 14px;
    background: #fff;
    color: #33586e;
    border-color: var(--bpp-border);
}
.bpp-btn--outline:hover {
    color: var(--bpp-primary);
    border-color: rgba(9, 60, 93, 0.35);
    background: var(--bpp-primary-soft);
}

.bpp-btn__arrow {
    font-size: 18px !important;
    margin-left: 0.1rem;
    opacity: 0.9;
    transition: transform 0.15s;
}
.bpp-btn--primary:hover .bpp-btn__arrow { transform: translateX(2px); }

.bpp-btn--ghost {
    background: #fff;
    color: #33586e;
    border-color: var(--bpp-border);
}
.bpp-btn--ghost:hover { color: var(--bpp-primary); border-color: rgba(9, 60, 93, 0.35); }

.bpp-btn--danger { color: #ba1a1a; }
.bpp-btn--danger:hover { border-color: rgba(186, 26, 26, 0.35); background: rgba(186, 26, 26, 0.08); }

.bpp-btn.is-done,
.bpp-segment__btn.is-done {
    color: var(--bpp-good) !important;
    border-color: rgba(26, 125, 75, 0.4) !important;
    background: rgba(26, 125, 75, 0.1) !important;
}

/* Sticky aksiyon çubuğu */
.bpp-action-bar {
    position: sticky;
    top: 0.75rem;
    z-index: 20;
    border-radius: 1.25rem;
    border: 1px solid var(--bpp-border);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 24px rgba(9, 60, 93, 0.08);
    overflow: hidden;
}

.bpp-action-bar::before {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(90deg, var(--bpp-primary), #1a6b94, var(--bpp-primary));
}

.bpp-action-bar__inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 1.15rem;
}

@media (min-width: 1024px) {
    .bpp-action-bar__inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1.25rem;
        padding: 1rem 1.35rem;
    }
}

.bpp-action-bar__lead {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    min-width: 0;
}

.bpp-action-bar__badge {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 125, 75, 0.12);
    color: var(--bpp-good);
}

.bpp-action-bar__badge .material-symbols-outlined { font-size: 22px !important; }

.bpp-action-bar__title {
    font-size: 15px;
    font-weight: 700;
    color: #12384f;
    line-height: 1.3;
}

.bpp-action-bar__desc {
    margin-top: 0.2rem;
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--bpp-muted);
}

.bpp-action-bar__controls {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    width: 100%;
}

@media (min-width: 640px) {
    .bpp-action-bar__controls {
        flex-direction: row;
        align-items: flex-end;
        gap: 1rem;
        width: auto;
        flex-shrink: 0;
    }
}

.bpp-action-bar__group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 0;
}

.bpp-action-bar__group--cta { flex: 1; }

@media (min-width: 640px) {
    .bpp-action-bar__group--cta { flex: 0 1 auto; }
}

.bpp-action-bar__group-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7a96a8;
    padding-left: 0.15rem;
}

.bpp-action-bar__divider {
    display: none;
    width: 1px;
    align-self: stretch;
    background: var(--bpp-border);
    margin: 1.1rem 0 0.15rem;
}

@media (min-width: 640px) {
    .bpp-action-bar__divider { display: block; }
}

.bpp-action-bar__cta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 480px) {
    .bpp-action-bar__cta {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

/* Segment kontrol (kopyala / temizle) */
.bpp-segment {
    display: inline-flex;
    border: 1px solid var(--bpp-border);
    border-radius: 0.85rem;
    overflow: hidden;
    background: #f4f8fa;
    width: 100%;
}

@media (min-width: 640px) {
    .bpp-segment { width: auto; }
}

.bpp-segment__btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.62rem 0.9rem;
    font-size: 13px;
    font-weight: 600;
    color: #33586e;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.bpp-segment__btn + .bpp-segment__btn {
    border-left: 1px solid var(--bpp-border);
}

.bpp-segment__btn:hover {
    background: #fff;
    color: var(--bpp-primary);
}

.bpp-segment__btn--danger { color: #ba1a1a; }
.bpp-segment__btn--danger:hover {
    background: rgba(186, 26, 26, 0.08);
    color: #9b1515;
}

/* Alt CTA paneli */
.bpp-cta-panel {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    padding: 1.35rem 1.4rem;
    border-radius: 1.25rem;
    border: 1px solid var(--bpp-border);
    background: linear-gradient(135deg, rgba(9, 60, 93, 0.04) 0%, #fff 55%);
}

@media (min-width: 768px) {
    .bpp-cta-panel {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1.5rem;
    }
}

.bpp-cta-panel__title {
    font-size: 16px;
    font-weight: 700;
    color: #12384f;
    margin-bottom: 0.35rem;
}

.bpp-cta-panel__desc {
    font-size: 13px;
    line-height: 1.55;
    color: var(--bpp-muted);
    max-width: 36rem;
}

.bpp-cta-panel__actions {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    width: 100%;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .bpp-cta-panel__actions {
        width: auto;
        min-width: 280px;
    }
}

@media (min-width: 480px) and (max-width: 767px) {
    .bpp-cta-panel__actions {
        flex-direction: row;
    }
    .bpp-cta-panel__actions .bpp-btn--block { width: auto; flex: 1; }
}

.bpp-card {
    border: 1px solid var(--bpp-border);
    border-radius: 1.25rem;
    background: #fff;
    padding: 1.25rem 1.35rem;
    box-shadow: 0 1px 2px rgba(9, 60, 93, 0.03);
}

.bpp-note {
    font-size: 12.5px;
    line-height: 1.55;
    color: #46647a;
}

/* Haftalık plan */
.bpp-weekly {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bpp-week-item {
    border: 1px solid var(--bpp-border);
    border-radius: 1rem;
    padding: 1rem 1.1rem;
    background: #f8fafb;
    display: grid;
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .bpp-week-item {
        grid-template-columns: auto 1fr;
        gap: 0.75rem 1.25rem;
        align-items: start;
    }
}

.bpp-week-item__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: var(--bpp-primary-soft);
    color: var(--bpp-primary);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.bpp-week-item__type {
    font-size: 14px;
    font-weight: 700;
    color: #12384f;
    margin-bottom: 0.25rem;
}

.bpp-week-item__meta {
    font-size: 12.5px;
    color: #46647a;
    line-height: 1.5;
}

.bpp-week-item__meta strong {
    color: #234f68;
    font-weight: 600;
}

/* Dağılım */
.bpp-dist {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.bpp-dist-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 0.65rem;
    font-size: 13px;
}

.bpp-dist-row__label {
    color: #33586e;
    font-weight: 600;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bpp-dist-row__bar-wrap {
    grid-column: 1 / -1;
    height: 6px;
    background: #e8eef2;
    border-radius: 999px;
    overflow: hidden;
}

.bpp-dist-row__bar {
    height: 100%;
    background: var(--bpp-primary);
    border-radius: 999px;
    transition: width 0.3s ease;
}

.bpp-dist-row__count {
    font-weight: 700;
    color: var(--bpp-primary);
    font-variant-numeric: tabular-nums;
}

.bpp-dist-row__pct {
    color: var(--bpp-muted);
    font-variant-numeric: tabular-nums;
    min-width: 40px;
    text-align: right;
}

/* Öneriler */
.bpp-tips {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.bpp-tips li {
    position: relative;
    padding-left: 1.35rem;
    font-size: 13px;
    line-height: 1.55;
    color: #46647a;
}

.bpp-tips li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--bpp-primary);
    opacity: 0.5;
}

.bpp-tips li.is-warn::before { background: #b45309; }

/* Uyarı */
.bpp-disclaimer {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 1rem 1.15rem;
    border-radius: 1rem;
    background: var(--bpp-warn-bg);
    border: 1px solid var(--bpp-warn-border);
    font-size: 13px;
    line-height: 1.6;
    color: #5c4a1e;
}

.bpp-disclaimer__icon {
    flex-shrink: 0;
    font-size: 22px !important;
    color: #b45309;
}

.bpp-disclaimer strong { color: #7c4a03; }

/* Dark mode */
.dark .bpp-card,
.dark .bpp-input,
.dark .bpp-select,
.dark .bpp-btn--ghost,
.dark .bpp-btn--outline {
    background: #12222f;
    border-color: rgba(120, 150, 165, 0.28);
    color: #dce8f0;
}

.dark .bpp-action-bar {
    background: rgba(18, 34, 47, 0.94);
    border-color: rgba(120, 150, 165, 0.28);
}

.dark .bpp-action-bar__title,
.dark .bpp-cta-panel__title { color: #cfe0ea; }

.dark .bpp-segment { background: #162835; }

.dark .bpp-segment__btn:hover { background: #1c3240; }

.dark .bpp-cta-panel {
    background: linear-gradient(135deg, rgba(9, 60, 93, 0.2) 0%, #12222f 55%);
}

.dark .bpp-week-item { background: #162835; }
.dark .bpp-week-item__type { color: #cfe0ea; }
.dark .bpp-disclaimer { background: rgba(180, 83, 9, 0.15); color: #e8d4a8; }
