/**
 * Kajinga Proven - ProSeal Widget CSS
 * Repliziert das ProvenExpert ProSeal-Widget als reines HTML/CSS
 */

.kajinga-proseal {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    width: 136px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.3;
    color: #444;
    box-shadow: -2px 0 12px rgba(var(--kajinga-black-rgb), 0.15);
    border-radius: 4px 0 0 4px;
    overflow: hidden;
    transition: opacity 0.3s ease;
}

.kajinga-proseal a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Top section - white background */
.kajinga-proseal-top {
    background: #fff;
    padding: 12px 8px 8px;
    text-align: center;
}

/* ProvenExpert Icon */
.kajinga-proseal-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 6px;
    border-radius: 50%;
    overflow: hidden;
}

.kajinga-proseal-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Inline SVG fallback icon */
.kajinga-proseal-icon svg {
    width: 100%;
    height: 100%;
}

/* Rating text "Sehr Gut" */
.kajinga-proseal-rating {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Stars */
.kajinga-proseal-stars {
    display: flex;
    justify-content: center;
    gap: 1px;
    margin-bottom: 6px;
}

.kajinga-proseal-star {
    width: 15px;
    height: 15px;
    color: #f5a623;
}

.kajinga-proseal-star svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.kajinga-proseal-star--empty svg {
    fill: #ddd;
}

.kajinga-proseal-star--half {
    position: relative;
    overflow: hidden;
}

/* Profile name */
.kajinga-proseal-name {
    font-size: 11px;
    font-weight: 600;
    color: #333;
    margin-bottom: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Sources */
.kajinga-proseal-sources {
    font-size: 9px;
    color: #999;
}

/* Colored bar - teal/cyan */
.kajinga-proseal-bar {
    background: #0db1cd;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    text-align: center;
    padding: 4px 6px;
    line-height: 1.2;
}

/* Mobile bar (hidden on desktop) */
.kajinga-proseal-bar-mobile {
    display: none;
}

/* Footer */
.kajinga-proseal-footer {
    background: #f8f8f8;
    padding: 6px 8px;
    text-align: center;
    border-top: 1px solid #eee;
}

.kajinga-proseal-auth {
    font-size: 9px;
    color: #179afc;
    font-weight: 500;
}

.kajinga-proseal-date {
    font-size: 9px;
    color: #999;
}

/* Hover effect */
.kajinga-proseal:hover {
    box-shadow: -3px 0 16px rgba(var(--kajinga-black-rgb), 0.2);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .kajinga-proseal {
        width: 110px;
        font-size: 13px;
    }

    .kajinga-proseal-icon {
        width: 55px;
        height: 55px;
    }

    .kajinga-proseal-rating {
        font-size: 13px;
    }

    .kajinga-proseal-star {
        width: 12px;
        height: 12px;
    }

    .kajinga-proseal-bar {
        display: none;
    }

    .kajinga-proseal-bar-mobile {
        display: block;
        background: #0db1cd;
        color: #fff;
        font-size: 9px;
        font-weight: 600;
        text-align: center;
        padding: 3px 4px;
    }
}

/* Very small screens - hide widget */
@media (max-width: 480px) {
    .kajinga-proseal {
        display: none;
    }
}

/* Shortcode inline variant (not fixed position) */
.kajinga-proseal--inline {
    position: static;
    transform: none;
    display: inline-block;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(var(--kajinga-black-rgb), 0.12);
}

/* =========================================================================
   ProBar - Bottom Bar Widget
   ========================================================================= */

.kajinga-probar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    background: #fff;
    box-shadow: 0 0 2px 0 rgba(136, 136, 136, 1);
    height: 43px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 43px;
    color: #097e92;
}

.kajinga-probar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-decoration: none;
    color: inherit;
    height: 100%;
    padding: 0 20px;
}

/* PE Logo Text */
.kajinga-probar-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 15px;
    color: #333;
    flex-shrink: 0;
}

.kajinga-probar-logo svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* Review count */
.kajinga-probar-count {
    font-size: 14px;
    font-weight: 600;
    color: #097e92;
    flex-shrink: 0;
}

/* Stars */
.kajinga-probar-stars {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.kajinga-probar-star {
    width: 16px;
    height: 16px;
    color: #f5a623;
}

.kajinga-probar-star svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.kajinga-probar-star--empty svg {
    fill: #ddd;
}

/* Rating label */
.kajinga-probar-label {
    font-size: 14px;
    font-weight: 700;
    color: #097e92;
    text-transform: uppercase;
    flex-shrink: 0;
}

/* Recommendation */
.kajinga-probar-rec {
    font-size: 14px;
    color: #097e92;
    flex-shrink: 0;
}

.kajinga-probar-rec strong {
    font-weight: 700;
}

/* Separator */
.kajinga-probar-sep {
    width: 1px;
    height: 20px;
    background: #ddd;
    flex-shrink: 0;
}

/* More info link */
.kajinga-probar-more {
    font-size: 13px;
    color: #097e92;
    font-weight: 600;
    flex-shrink: 0;
}

/* Hover */
.kajinga-probar:hover {
    box-shadow: 0 0 4px 0 rgba(100, 100, 100, 1);
}

/* Tablet */
@media (max-width: 900px) {
    .kajinga-probar a {
        gap: 10px;
        padding: 0 12px;
    }

    .kajinga-probar-rec,
    .kajinga-probar-more {
        display: none;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .kajinga-probar {
        height: 38px;
        line-height: 38px;
        font-size: 12px;
    }

    .kajinga-probar a {
        gap: 8px;
        padding: 0 8px;
    }

    .kajinga-probar-logo span {
        display: none;
    }

    .kajinga-probar-sep {
        display: none;
    }

    .kajinga-probar-star {
        width: 13px;
        height: 13px;
    }

    .kajinga-probar-count {
        font-size: 12px;
    }

    .kajinga-probar-label {
        font-size: 12px;
    }
}

/* Very small screens */
@media (max-width: 380px) {
    .kajinga-probar-label {
        display: none;
    }
}
