/* ── Haber Push Widget CSS ── */
/* Tema: #cc0000 primary · #141414 bg · #e8e8e8 text · Roboto */

#hp-widget {
    position: fixed;
    z-index: 99999;
    bottom: 24px;
    display: none;
    align-items: flex-end;
    pointer-events: none;
}

#hp-widget.hp-widget--sol  { left: 24px; }
#hp-widget.hp-widget--sag  { right: 24px; }
#hp-widget.hp-widget--orta { left: 50%; transform: translateX(-50%); }

#hp-widget-karti {
    background: #141414;
    border: 1px solid #2a2a2a;
    border-left: 3px solid #cc0000;
    border-radius: 6px;
    box-shadow: 0 8px 32px rgba(0,0,0,.6), 0 0 0 1px rgba(204,0,0,.1);
    width: 340px;
    overflow: hidden;
    pointer-events: all;

    /* Giriş animasyonu */
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .3s ease, transform .3s ease;
}

#hp-widget.hp-widget--acik #hp-widget-karti {
    opacity: 1;
    transform: translateY(0);
}

/* Kapat butonu */
#hp-widget-kapat {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    color: #555;
    font-size: 16px;
    cursor: pointer;
    line-height: 1;
    padding: 4px 6px;
    border-radius: 4px;
    transition: color .15s, background .15s;
    z-index: 1;
}

#hp-widget-kapat:hover {
    color: #cc0000;
    background: rgba(204,0,0,.1);
}

/* İzin ekranı */
#hp-izin-ekrani,
#hp-basari-ekrani {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 40px 18px 18px;
}

/* İkon */
.hp-widget-ikon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: rgba(204,0,0,.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cc0000;
}

.hp-ikon--ok {
    background: rgba(46,125,50,.15);
    color: #81c784;
    font-size: 22px;
    font-weight: 700;
}

/* Metin */
.hp-widget-metin {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.hp-widget-metin strong {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Roboto Condensed', Arial, sans-serif;
    line-height: 1.2;
}

.hp-widget-metin span {
    color: #aaa;
    font-size: 12px;
    line-height: 1.4;
}

/* Butonlar */
.hp-widget-butonlar {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding: 0 18px 16px;
    justify-content: flex-end;
}

/* İzin ver butonu */
.hp-btn-izin {
    padding: 7px 18px;
    background: #cc0000;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Roboto', Arial, sans-serif;
    transition: background .15s;
    letter-spacing: 0.3px;
}

.hp-btn-izin:hover   { background: #990000; }
.hp-btn-izin:disabled { background: #444; cursor: not-allowed; }

/* Hayır butonu */
.hp-btn-reddet {
    padding: 7px 14px;
    background: transparent;
    color: #777;
    border: 1px solid #333;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    font-family: 'Roboto', Arial, sans-serif;
    transition: color .15s, border-color .15s;
}

.hp-btn-reddet:hover {
    color: #aaa;
    border-color: #555;
}

/* Başarı ekranı düzeltme */
#hp-basari-ekrani {
    padding: 18px;
}

/* ── Responsive ── */
@media (max-width: 400px) {
    #hp-widget.hp-widget--sol,
    #hp-widget.hp-widget--sag,
    #hp-widget.hp-widget--orta {
        left: 12px;
        right: 12px;
        bottom: 12px;
        transform: none;
    }

    #hp-widget-karti {
        width: 100%;
    }
}
