/**
 * Adbear — global buton / aksiyon
 * Vite: app.css içinden import | CDN: public/css/adbear-ui.css (aynı içerik)
 */
:root {
    --adbear-ui-radius: 0.625rem;
    --adbear-ui-radius-sm: 0.5rem;
    --adbear-ui-brand: #1d1933;
    --adbear-ui-gold: #f4a81d;
    --adbear-ui-border: 1px;
    --adbear-ui-primary-fill: #ede9f7;
    --adbear-ui-secondary-fill: #eef2ff;
    --adbear-ui-gold-fill: #fff7ed;
    --adbear-ui-shadow: 0 1px 2px rgba(29, 25, 51, 0.05), 0 2px 6px rgba(29, 25, 51, 0.04);
    --adbear-ui-shadow-hover: 0 2px 4px rgba(29, 25, 51, 0.07), 0 6px 14px rgba(29, 25, 51, 0.08);
}

.adbear-btn-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.625rem;
}

.adbear-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-sizing: border-box;
    min-height: 2.25rem;
    padding: 0.4375rem 0.875rem;
    margin: 0;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0.01em;
    border-radius: var(--adbear-ui-radius);
    border: var(--adbear-ui-border) solid transparent;
    background: transparent;
    color: inherit;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: var(--adbear-ui-shadow);
    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

a.adbear-btn {
    text-decoration: none;
}

.adbear-btn:focus-visible {
    outline: 2px solid var(--adbear-ui-gold);
    outline-offset: 2px;
}

.adbear-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}

.adbear-btn:not(.adbear-btn--text):hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: var(--adbear-ui-shadow-hover);
}

.adbear-btn:not(.adbear-btn--text):active:not(:disabled) {
    transform: translateY(0);
    box-shadow: var(--adbear-ui-shadow);
}

/* Üst bar / önemli CTA */
.adbear-btn--lg {
    min-height: 2.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 0.75rem;
}

.adbear-btn--sm {
    min-height: 1.875rem;
    padding: 0.3125rem 0.625rem;
    font-size: 0.75rem;
    border-radius: var(--adbear-ui-radius-sm);
    letter-spacing: 0.02em;
}

/* Satır içi chip (Aç, küçük aksiyon) */
.adbear-btn--pill {
    border-radius: 9999px;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.adbear-btn--primary {
    background: linear-gradient(180deg, #f7f5fc 0%, var(--adbear-ui-primary-fill) 100%);
    color: var(--adbear-ui-brand);
    border-color: rgba(76, 68, 110, 0.45);
}

.adbear-btn--primary:hover:not(:disabled) {
    background: linear-gradient(180deg, #2a2548 0%, var(--adbear-ui-brand) 100%);
    color: #fff;
    border-color: var(--adbear-ui-brand);
}

.adbear-btn--secondary {
    background: linear-gradient(180deg, #fafbff 0%, var(--adbear-ui-secondary-fill) 100%);
    color: #4338ca;
    border-color: rgba(165, 180, 252, 0.85);
}

.adbear-btn--secondary:hover:not(:disabled) {
    border-color: #6366f1;
    background: linear-gradient(180deg, #eef2ff 0%, #e0e7ff 100%);
    color: #312e81;
}

.adbear-btn--neutral {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    color: #475569;
    border-color: #cbd5e1;
}

.adbear-btn--neutral:hover:not(:disabled) {
    background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
    border-color: #94a3b8;
    color: #1e293b;
}

.adbear-btn--gold {
    background: linear-gradient(180deg, #fffdfb 0%, var(--adbear-ui-gold-fill) 100%);
    color: #9a3412;
    border-color: rgba(234, 88, 12, 0.55);
}

.adbear-btn--gold:hover:not(:disabled) {
    background: linear-gradient(180deg, #fde68a 0%, var(--adbear-ui-gold) 100%);
    color: var(--adbear-ui-brand);
    border-color: #c2410c;
}

.adbear-btn--danger {
    background: linear-gradient(180deg, #fff5f7 0%, #ffe4e9 100%);
    color: #be123c;
    border-color: rgba(251, 113, 133, 0.65);
}

.adbear-btn--danger:hover:not(:disabled) {
    background: linear-gradient(180deg, #fecdd3 0%, #fda4af 100%);
    border-color: #e11d48;
    color: #881337;
}

.adbear-btn--warn {
    background: linear-gradient(180deg, #fffef5 0%, #fef9c3 100%);
    color: #854d0e;
    border-color: rgba(250, 204, 21, 0.7);
}

.adbear-btn--warn:hover:not(:disabled) {
    background: linear-gradient(180deg, #fef08a 0%, #fde047 100%);
    border-color: #ca8a04;
    color: #713f12;
}

.adbear-btn--on-dark {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.adbear-btn--on-dark:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.adbear-btn--accent-dark {
    background: linear-gradient(180deg, #fcd34d 0%, var(--adbear-ui-gold) 100%);
    color: var(--adbear-ui-brand);
    border-color: #d97706;
    box-shadow: 0 2px 10px rgba(244, 168, 29, 0.35);
}

.adbear-btn--accent-dark:hover:not(:disabled) {
    filter: brightness(1.05);
}

.adbear-btn--danger-dark {
    background: rgba(244, 63, 94, 0.22);
    color: #fecaca;
    border-color: rgba(251, 113, 133, 0.55);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.adbear-btn--danger-dark:hover:not(:disabled) {
    background: rgba(190, 18, 60, 0.45);
    border-color: #fb7185;
}

/* Metin link (tablo ikincil) */
.adbear-btn--text {
    display: inline-flex;
    align-items: center;
    min-height: auto;
    padding: 0.1875rem 0.3125rem;
    font-size: inherit;
    font-weight: 600;
    letter-spacing: 0;
    color: #64748b;
    background: transparent;
    border: none;
    border-radius: var(--adbear-ui-radius-sm);
    text-decoration: none;
    cursor: pointer;
    box-shadow: none;
}

.adbear-btn--text:hover:not(:disabled) {
    transform: none;
    box-shadow: none;
    color: #1e293b;
    background: #f1f5f9;
}

.adbear-btn--text-danger {
    color: #e11d48;
}

.adbear-btn--text-danger:hover:not(:disabled) {
    color: #be123c;
    background: #fff1f2;
}

.adbear-btn--text-brand {
    color: var(--adbear-ui-brand);
}

.adbear-btn--text-brand:hover:not(:disabled) {
    color: var(--adbear-ui-brand);
    background: #f4f2fb;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.adbear-btn--text-accent {
    color: #4f46e5;
}

.adbear-btn--text-accent:hover:not(:disabled) {
    color: #4338ca;
    background: #eef2ff;
}
