
/**
 * @copyright Copyright (c) 2026 webandmore e.K. | hallo@webandmore.de
 * @license   http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License, version 3 or higher
 * @package   webandmore WP Tweaks
 */

#wpadminbar .webandmore-tweaks-dev {
    background-color: #DBA617 !important;
    pointer-events: none !important;
}
#wpadminbar .webandmore-tweaks-dev div {
    pointer-events: none !important;
}
#wpadminbar .webandmore-tweaks-dev .ab-label {
    color: #FFFFFF !important;
}
#wpadminbar .webandmore-tweaks-dev .ab-icon::before {
    content: '\f107';
    top: 2px;
    color: rgba(240,246,252,0.6) !important;
}

#wpadminbar .webandmore-tweaks-maintenance {
    background-color: #D63638 !important;
    pointer-events: none !important;
}
#wpadminbar .webandmore-tweaks-maintenance div {
    pointer-events: none !important;
}
#wpadminbar .webandmore-tweaks-maintenance .ab-label {
    color: #FFFFFF !important;
}
#wpadminbar .webandmore-tweaks-maintenance .ab-icon::before {
    content: '\f534';
    top: 2px;
    color: rgba(240,246,252,0.6) !important;
}

#wpadminbar #wp-admin-bar-my-account.with-avatar > a img {
    height: 24px !important;
    border: 0 !important;
    border-radius: 50% !important;
    aspect-ratio: 1/1 !important;
}
#wp-admin-bar-user-info .avatar {
    border: 0 !important;
    border-radius: 50% !important;
    aspect-ratio: 1/1 !important;
}

/* AI Label */
.ai-generated,
.ai-modified,
.ai-icon-tl,
.ai-icon-tr,
.ai-icon-bl,
.ai-icon-br {
    position: relative;
}
.ai-generated::before,
.ai-modified::before,
.ai-icon-tl::before,
.ai-icon-tr::before,
.ai-icon-bl::before,
.ai-icon-br::before {
    content: '';
    position: absolute;
    width: 110px;
    height: auto;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
    z-index: 2;
    top: auto;
    bottom: clamp(2px, 2%, 8px);
    left: clamp(2px, 2%, 8px);
    right: auto;
    opacity: 0.5;
    max-height: 15%;
    aspect-ratio: 6/1;
}
.ai-generated::before {
    background-image: url('../../images/ai-generated-black.svg');
}
.ai-modified::before {
    background-image: url('../../images/ai-modified-black.svg');
}
.ai-generated.ai-icon-white::before {
    background-image: url('../../images/ai-generated-white.svg');
}
.ai-generated.ai-icon-black::before {
    background-image: url('../../images/ai-generated-black.svg');
}
.ai-modified.ai-icon-white::before {
    background-image: url('../../images/ai-modified-white.svg');
}
.ai-modified.ai-icon-black::before {
    background-image: url('../../images/ai-modified-black.svg');
}
.ai-icon-tl::before {
    top: clamp(2px, 2%, 8px);
    bottom: auto;
    left: clamp(2px, 2%, 8px);
    right: auto;
    background-position: left;
}
.ai-icon-tr::before {
    top: clamp(2px, 2%, 8px);
    bottom: auto;
    left: auto;
    right: clamp(2px, 2%, 8px);
    background-position: right;
}
.ai-icon-bl::before {
    top: auto;
    bottom: clamp(2px, 2%, 8px);
    left: clamp(2px, 2%, 8px);
    right: auto;
    background-position: left;
}
.ai-icon-br::before {
    top: auto;
    bottom: clamp(2px, 2%, 8px);
    left: auto;
    right: clamp(2px, 2%, 8px);
    background-position: right;
}

.ai-notice {
    display: flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.5em 0.75em;
    margin: 1em 0;
    border-left: 3px solid currentColor;
    background: rgba(0, 0, 0, 0.03);
    font-size: 0.75em;
    line-height: 1.4;
}
.ai-notice__icon {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.ai-notice__text {
    flex: 1 1 auto;
}
.ai-notice--white .ai-notice__icon {
    background-image: url('../../images/ai-icon-white.svg');
}
.ai-notice--black .ai-notice__icon {
    background-image: url('../../images/ai-icon-black.svg');
}
.ai-notice--white {
    background: rgba(255, 255, 255, 0.08);
}