/**
 * Hot Toasts - Frontend Styles
 *
 * @package Hot_Toasts
 * @since 1.0.0
 */

.ht-toast span {
    display: inline !important;
}

.ht-toast .toast-messages-icon .bb-icon {
    display: none !important;
}

/* Toast content wrapper */
.ht-toast-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: var(--bb-body-text-color);
}

.ht-toast-content__image {
    width: 100%;
    /* max-height: 150px;
    overflow: hidden; */
    border-radius: 6px;
}

.ht-toast-content__image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.ht-toast-content__body {
    font-size: 14px;
    line-height: 1.5;
}

.ht-toast-content__body p {
    margin: 0 0 10px;
}

.ht-toast-content__body p:last-child {
    margin-bottom: 0;
}

/* Buttons */
.ht-toast-content__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Button base styles with CSS variables for colors */
.ht-toast-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background-color: var(--ht-btn-color, #007CFF);
    color: #fff !important;
    border-radius: 4px;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 500;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.ht-toast-button:hover {
    background-color: var(--ht-btn-hover, #0066CC);
    color: #fff !important;
}

/* Large button size */
.ht-toast-button--large {
    display: block;
    width: 100%;
    padding: 10px 16px;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
}

/* Button Animations */

/* Pulse - blinking between colors */
@keyframes ht-pulse {
    0%, 100% { background-color: var(--ht-btn-color); }
    50% { background-color: var(--ht-btn-hover); }
}

.ht-toast-button--pulse {
    animation: ht-pulse 2.2s ease-in-out infinite;
}

.ht-toast-button--pulse:hover {
    animation: none;
    background-color: var(--ht-btn-hover);
}

/* Scale - grow/shrink */
@keyframes ht-scale {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.ht-toast-button--scale {
    animation: ht-scale 1.2s ease-in-out infinite;
}

.ht-toast-button--scale:hover {
    animation: none;
    background-color: var(--ht-btn-hover);
    transform: scale(1);
}

/* Finger - pointer emoji animation */
@keyframes ht-finger-offset {
    0%, 10% { offset-distance: 0%; }
    40%, 60% { offset-distance: 100%; }
    90%, 100% { offset-distance: 0%; }
}

.ht-toast-button--finger {
    overflow: visible;
}

.ht-toast-button--finger::after {
    content: '👆';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
    offset-path: path('M 46 28 Q 24 6 8 6');
    offset-distance: 0%;
    offset-rotate: 0deg;
    animation: ht-finger-offset 2.4s cubic-bezier(0.22, 0.0, 0.12, 1) infinite;
    pointer-events: none;
    opacity: 1;
    transition: opacity 220ms ease;
}

/* Large button - proportionally larger finger */
.ht-toast-button--large.ht-toast-button--finger::after {
    font-size: 1.4em;
    right: 16px;
    offset-path: path('M 52 32 Q 28 8 10 8');
}

/* Sync background with finger position using animation */
.ht-toast-button--finger {
    animation: ht-finger-bg 2.4s cubic-bezier(0.22, 0.0, 0.12, 1) infinite;
}

@keyframes ht-finger-bg {
    0%, 10% { background-color: var(--ht-btn-color); }
    40% { background-color: var(--ht-btn-hover); }
    60% { background-color: var(--ht-btn-hover); }
    90%, 100% { background-color: var(--ht-btn-color); }
}

.ht-toast-button--finger:hover {
    animation: none;
    background-color: var(--ht-btn-hover);
}

.ht-toast-button--finger:hover::after {
    animation-play-state: paused;
    opacity: 0;
}

/* Partner Card Template Styles */
.ht-partner-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ht-partner-card__top {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.ht-partner-card__avatar {
    position: relative;
    flex-shrink: 0;
    width: 70px;
    height: 70px;
}

.ht-partner-card__avatar a {
    display: block;
    width: 100%;
    height: 100%;
}

.ht-partner-card__avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.ht-partner-card__online {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: var(--bb-success-color, #1CD991);
    border: 2px solid #fff;
    border-radius: 50%;
}

.ht-partner-card__header {
    flex: 1;
    min-width: 0;
}

.ht-partner-card__name {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 4px;
}

.ht-partner-card__name a {
    color: inherit;
    text-decoration: none;
}

.ht-partner-card__name a:hover {
    color: var(--bb-primary-color, #007CFF);
}

.ht-partner-card__gamipress {
    display: flex;
    gap: 8px;
    font-size: 12px;
    margin-bottom: 6px;
}

.ht-partner-card__gamipress img {
    vertical-align: middle;
}

.ht-partner-card__valuation {
    display: flex;
    gap: 16px;
}

.ht-partner-card__valuation-column {
    display: flex;
    flex-direction: column;
}

.ht-partner-card__rating,
.ht-partner-card__price {
    font-size: 14px;
    font-weight: 600;
}

.ht-partner-card__rating i {
    color: #FFB800;
}

.ht-partner-card__reviews,
.ht-partner-card__lesson {
    font-size: 11px;
    color: #7f7f7f;
    line-height: 1.2;
}

/* Partner info section */
.ht-partner-card__info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
}

.ht-partner-card__info-line {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}

.ht-partner-card__info-line i {
    flex-shrink: 0;
    color: #666;
}

/* Skill levels */
.ht-partner-card .skill-expert {
    font-weight: 600;
}

.ht-partner-card .skill-intermediate {
    font-weight: 500;
}

.ht-partner-card .skill-beginner {
    font-weight: 400;
}

/* Action button */
.ht-partner-card__action {
    margin-top: 8px;
}

.ht-partner-card__button {
    display: block;
    width: 100%;
    padding: 10px 16px;
    background: var(--bb-primary-color, #007CFF);
    color: #fff !important;
    border-radius: 6px;
    text-align: center;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.ht-partner-card__button:hover {
    background: var(--bb-primary-color-hover, #0066CC);
    color: #fff !important;
}

/* Toast wrapper modifications */
.ht-toast.item-list {
    /* Allow toast to expand for partner card */
}

.ht-toast--partner_card .toast-messages-content {
    max-width: none;
}