/* ==========================================================================
   Bewertungshelden24 – Google Bewertungs-Widget
   Frontend Styles
   ========================================================================== */

/* Reset & Base */
[data-bh-widget],
[data-bh-widget] * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.bh-widget {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.4;
}

.bh-widget-link {
    text-decoration: none !important;
    color: inherit !important;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bh-widget-link:hover {
    text-decoration: none !important;
}

.bh-widget-stars {
    display: flex;
    align-items: center;
    gap: 1px;
    line-height: 1;
}

.bh-star {
    flex-shrink: 0;
}

.bh-widget-google-logo {
    flex-shrink: 0;
}

/* Powered by */
.bh-widget-powered {
    font-size: 10px;
    opacity: 0.5;
    margin-top: 6px;
    text-align: center;
    transition: opacity 0.2s;
}

.bh-widget:hover .bh-widget-powered {
    opacity: 0.8;
}

.bh-widget-powered a {
    color: inherit !important;
    text-decoration: underline !important;
}

/* ==========================================================================
   STYLE: Badge (kompakt)
   ========================================================================== */
.bh-widget--badge {
    display: inline-block;
    border-radius: 12px;
    padding: 12px 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    max-width: 320px;
}

.bh-widget--badge:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.bh-widget--badge .bh-widget-name {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.bh-widget--badge .bh-widget-rating-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bh-widget--badge .bh-widget-rating-num {
    font-size: 15px;
    font-weight: 700;
}

.bh-widget--badge .bh-widget-count {
    font-size: 12px;
    opacity: 0.6;
}

/* ==========================================================================
   STYLE: Card (groß)
   ========================================================================== */
.bh-widget--card {
    display: inline-block;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    max-width: 280px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.bh-widget--card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.bh-widget--card .bh-widget-link {
    flex-direction: column;
    gap: 8px;
}

.bh-widget--card .bh-widget-header {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.bh-widget--card .bh-widget-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.6;
}

.bh-widget--card .bh-widget-name {
    font-size: 16px;
    font-weight: 700;
    margin: 4px 0;
}

.bh-widget--card .bh-widget-rating-big {
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
    margin: 8px 0 4px;
}

.bh-widget--card .bh-widget-stars--large .bh-star {
    width: 24px;
    height: 24px;
}

.bh-widget--card .bh-widget-stars {
    justify-content: center;
}

.bh-widget--card .bh-widget-count {
    font-size: 13px;
    opacity: 0.6;
    margin-top: 4px;
}

.bh-widget--card .bh-widget-cta {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    background: #4285F4;
    color: #fff !important;
    transition: background 0.2s;
}

.bh-widget--card .bh-widget-link:hover .bh-widget-cta {
    background: #3367D6;
}

/* ==========================================================================
   STYLE: Inline (einzeilig)
   ========================================================================== */
.bh-widget--inline {
    display: inline-flex;
    align-items: center;
}

.bh-widget--inline .bh-widget-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
}

.bh-widget--inline .bh-widget-rating-num {
    font-size: 14px;
    font-weight: 700;
}

.bh-widget--inline .bh-widget-stars .bh-star {
    width: 14px;
    height: 14px;
}

.bh-widget--inline .bh-widget-count {
    font-size: 12px;
    opacity: 0.6;
}

/* ==========================================================================
   STYLE: Floating Badge
   ========================================================================== */
.bh-widget--floating {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    border-radius: 14px;
    padding: 12px 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    animation: bh-float-in 0.4s ease-out;
}

.bh-widget--floating:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.bh-widget--floating .bh-widget-rating-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bh-widget--floating .bh-widget-rating-num {
    font-size: 16px;
    font-weight: 700;
}

.bh-widget--floating .bh-widget-count {
    font-size: 11px;
    opacity: 0.6;
}

@keyframes bh-float-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   THEMES
   ========================================================================== */

/* Light Theme */
.bh-widget--light {
    background: #ffffff;
    color: #1a1a1a;
}

/* Dark Theme */
.bh-widget--dark {
    background: #1a1a2e;
    color: #f0f0f0;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.bh-widget--dark .bh-widget-powered a {
    color: #8ab4f8 !important;
}

.bh-widget--dark .bh-star--empty path {
    fill: #3a3a5c;
}

/* Brand Theme (Google colors) */
.bh-widget--brand {
    background: linear-gradient(135deg, #4285F4 0%, #34A853 50%, #FBBC05 100%);
    color: #ffffff;
    border-color: transparent !important;
}

.bh-widget--brand .bh-widget-count {
    opacity: 0.85;
}

.bh-widget--brand .bh-star--full path,
.bh-widget--brand .bh-star--half path {
    fill: #ffffff;
}

.bh-widget--brand .bh-star--empty path {
    fill: rgba(255, 255, 255, 0.35);
}

.bh-widget--brand .bh-widget-cta {
    background: rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: blur(4px);
}

.bh-widget--brand .bh-widget-link:hover .bh-widget-cta {
    background: rgba(255, 255, 255, 0.4) !important;
}

.bh-widget--brand .bh-widget-google-logo path {
    fill: #ffffff !important;
}

.bh-widget--brand .bh-widget-powered a {
    color: #fff !important;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 480px) {
    .bh-widget--card {
        max-width: 100%;
        padding: 20px;
    }
    .bh-widget--floating {
        bottom: 12px;
        right: 12px;
        left: 12px;
    }
    .bh-widget--card .bh-widget-rating-big {
        font-size: 36px;
    }
}
