/**
 * TutorPrestige - Live Activity Notification Styles
 *
 * @package TutorPrestige
 * @since 2.0.0
 */

/* Container positioning */
.tutorprestige-activity-container {
    position: fixed;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.tutorprestige-activity-bottom_left {
    bottom: 20px;
    left: 20px;
}

.tutorprestige-activity-bottom_right {
    bottom: 20px;
    right: 20px;
}

.tutorprestige-activity-top_left {
    top: 80px;
    left: 20px;
}

.tutorprestige-activity-top_right {
    top: 80px;
    right: 20px;
}

/* Individual notification toast */
.tutorprestige-activity-toast {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    min-width: 280px;
    max-width: 380px;
    pointer-events: auto;
    animation: tutorprestigeToastIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both,
               tutorprestigeToastOut 0.4s ease-in forwards;
    animation-delay: 0s, 7.6s;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tutorprestige-activity-toast:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.15), 0 3px 10px rgba(0, 0, 0, 0.08);
}

/* Avatar */
.tutorprestige-activity-avatar {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: #fff;
}

/* Content */
.tutorprestige-activity-content {
    flex: 1;
    min-width: 0;
}

.tutorprestige-activity-text {
    font-size: 13px;
    color: #374151;
    line-height: 1.4;
    margin: 0 0 3px 0;
}

.tutorprestige-activity-text strong {
    color: #111827;
    font-weight: 600;
}

.tutorprestige-activity-time {
    font-size: 11px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 4px;
}

.tutorprestige-activity-time::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    animation: tutorprestigePulse 2s infinite;
}

/* Verified badge */
.tutorprestige-activity-verified {
    display: inline-block;
    width: 14px;
    height: 14px;
    background: #3b82f6;
    border-radius: 50%;
    position: relative;
    margin-left: 2px;
    vertical-align: middle;
}

.tutorprestige-activity-verified::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8px;
    color: #fff;
    font-weight: bold;
}

/* Close button */
.tutorprestige-activity-close {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #6b7280;
    pointer-events: auto;
    transition: background 0.2s;
}

.tutorprestige-activity-close:hover {
    background: #e5e7eb;
    color: #374151;
}

/* Animations */
@keyframes tutorprestigeToastIn {
    from {
        opacity: 0;
        transform: translateX(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes tutorprestigeToastOut {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateX(-20px) scale(0.95);
    }
}

@keyframes tutorprestigePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Mobile */
@media (max-width: 480px) {
    .tutorprestige-activity-container {
        left: 10px !important;
        right: 10px !important;
        bottom: 10px !important;
    }

    .tutorprestige-activity-toast {
        min-width: auto;
        max-width: 100%;
        padding: 10px 12px;
    }
}
