/* =========================================================
   mybp.css  –  Persönlicher Bereich
   Designsystem: benzinpreis.de-Palette aus base.css / layout.css
   Sidebar-Styles jetzt komplett über Tailwind (sidebar-Templates)
   ========================================================= */

/* ---------- Main-Inhalt ---------- */
.mybp-main {
    padding: 14px 0 30px;
}

.mybp-h1-logo {
    height: 1.4em;
    width: auto;
    display: block;
    flex-shrink: 0;
}

.mybp-subtitle {
    color: var(--color-bp-text-muted, #55566a);
    font-size: 9.5pt;
    margin: 0 0 18px;
    border-bottom: 1px solid #E8E8E8;
    padding-bottom: 10px;
}

/* ---------- Kacheln-Grid ---------- */
.mybp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

/* ---------- Kachel (Card im benzinpreis.de-Stil) ---------- */
.mybp-card {
    background: #fff;
    border: 1px solid var(--color-bp-border, #d8d9e8);
    border-radius: var(--r-md, 8px);
    padding: 14px 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,.10));
    transition: box-shadow .2s, border-color .2s;
}

.mybp-card:hover {
    box-shadow: var(--shadow-md, 0 3px 10px rgba(0,0,0,.12));
    border-color: var(--color-bp-green, #62B352);
}

.mybp-card__icon {
    font-size: 1.5rem;
    line-height: 1;
}

.mybp-card__title {
    font-size: 11.5pt;
    font-weight: 700;
    color: var(--color-bp-text, #1a1a1a);
    margin: 0 0 4px;
}

.mybp-card__text {
    font-size: 9.5pt;
    color: var(--color-bp-text-muted, #55566a);
    line-height: 1.55;
    margin: 0;
    flex: 1;
}

.mybp-card__foot {
    margin-top: 4px;
    text-align: right;
}

/* Widget-Karte – breite Variante (3 Spalten) */
.mybp-card--widget-wide {
    grid-column: span 3;
}

/* Widget-Galerie */
.mybp-widget-gallery {
    min-height: 56px;
}

.mybp-widget-gallery__loading {
    font-size: 9pt;
    color: var(--color-bp-text-muted, #55566a);
    padding: 2px 0;
}

/* Leerer Zustand: wanderndes Widget */
.mybp-widget-empty-track {
    position: relative;
    overflow: hidden;
    height: 56px;
    border-radius: var(--r-sm, 4px);
    background: var(--color-bp-bg-subtle, #f5f5f8);
}

.mybp-widget-empty-pill {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 7px;
    background: #fff;
    border: 1px solid var(--color-bp-border, #d8d9e8);
    border-radius: var(--r-sm, 4px);
    padding: 6px 12px;
    font-size: 9pt;
    color: var(--color-bp-text-muted, #55566a);
    white-space: nowrap;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    animation: mybp-widget-drift 8s linear infinite;
}

.mybp-widget-empty-pill__icon {
    font-size: 1rem;
    opacity: .55;
}

@keyframes mybp-widget-drift {
    0%   { left: 100%; }
    100% { left: -320px; }
}

.mybp-widget-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 2px 0 4px;
}

.mybp-widget-thumb {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.mybp-widget-thumb__svg {
    width: 110px;
    height: auto;
    display: block;
    border: 1px solid var(--color-bp-border, #d8d9e8);
    border-radius: var(--r-sm, 4px);
    transition: transform 0.2s, border-color 0.2s;
}

.mybp-widget-thumb:hover .mybp-widget-thumb__svg {
    transform: scale(1.05);
    border-color: var(--color-bp-green, #62B352);
}

.mybp-widget-thumb__name {
    font-size: 8pt;
    color: var(--color-bp-text-muted, #55566a);
    max-width: 110px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- Button (wie Section-Label + Grün) ---------- */
.mybp-btn {
    display: inline-block;
    padding: 4px 12px;
    background: var(--color-bp-green, #62B352);
    color: #fff;
    text-decoration: none;
    border-radius: var(--r-sm, 4px);
    font-size: 9pt;
    font-weight: 700;
    transition: background .15s;
}

.mybp-btn:hover {
    background: var(--color-bp-green-dark, #4A8C3D);
    color: #fff;
    text-decoration: none;
}

/* ---------- Badge ---------- */
.mybp-badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 99px;
    font-size: 8pt;
    font-weight: 600;
}

.mybp-badge--soon {
    background: #EBEBEB;
    color: #888;
    border: 1px solid #D8D8D8;
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
    .mybp-grid {
        grid-template-columns: 1fr 1fr;
    }
    .mybp-card--widget-wide {
        grid-column: span 2;
    }
}

/* ---------- Login-Prompt (nicht eingeloggt) ---------- */
.mybp-login-prompt {
    background: var(--color-bp-green-xlight, #E8F5E4);
    border: 1px solid var(--color-bp-green-light, #A0D097);
    border-radius: var(--r-md, 8px);
    padding: 20px 22px;
    margin-bottom: 22px;
    max-width: 520px;
}

.mybp-login-prompt__icon {
    font-size: 2rem;
    margin-bottom: 6px;
}

.mybp-login-prompt__title {
    font-size: 12pt;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--color-bp-text, #1a1a1a);
}

.mybp-login-prompt__text {
    font-size: 9pt;
    color: var(--color-bp-text-muted, #55566a);
    margin: 0 0 14px;
    line-height: 1.5;
}

.mybp-login-prompt__btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.mybp-btn--primary {
    background: var(--color-bp-green, #62B352);
    color: #fff;
    border: none;
    cursor: pointer;
    font-family: inherit;
    display: inline-block;
    padding: 7px 18px;
    border-radius: var(--r-sm, 4px);
    font-size: 10pt;
    font-weight: 700;
    text-decoration: none;
    transition: background .15s;
}
.mybp-btn--primary:hover {
    background: var(--color-bp-green-dark, #4A8C3D);
    color: #fff;
    text-decoration: none;
}

.mybp-btn--secondary {
    background: #fff;
    color: var(--color-bp-green-dark, #4A8C3D);
    border: 2px solid var(--color-bp-green, #62B352);
    display: inline-block;
    padding: 5px 16px;
    border-radius: var(--r-sm, 4px);
    font-size: 10pt;
    font-weight: 700;
    text-decoration: none;
    transition: background .15s;
}
.mybp-btn--secondary:hover {
    background: var(--color-bp-green-xlight, #E8F5E4);
    text-decoration: none;
}

/* ---------- Gesperrte Kachel (nur für eingeloggte Nutzer) ---------- */
.mybp-card--locked {
    opacity: 0.6;
    position: relative;
}
.mybp-card--locked::after {
    content: '\1F512';
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 0.9rem;
    opacity: 0.5;
}
