/**
 * Kennst du schon - Toast Notification Styles
 *
 * Toast-Notification die zufällige Mitgliederprofile vorstellt.
 * Erscheint unten rechts auf der Seite.
 */

/* Container für die Toast-Notification */
.mcmp-kennst-du-schon-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99999;
    max-width: 340px;
    width: calc(100% - 40px);
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

.mcmp-kennst-du-schon-toast.mcmp-toast-sichtbar {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.mcmp-kennst-du-schon-toast.mcmp-toast-ausblenden {
    opacity: 0;
    transform: translateX(100%);
}

/* Kachel-Container */
.mcmp-kennst-du-schon-kachel {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.18);
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 4px solid #2d9adb;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mcmp-kennst-du-schon-kachel:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.22);
}

/* Schließen-Button */
.mcmp-kennst-du-schon-schliessen {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #999;
    font-size: 20px;
    line-height: 1;
    border-radius: 50%;
    transition: background-color 0.2s ease, color 0.2s ease;
    z-index: 1;
}

.mcmp-kennst-du-schon-schliessen:hover {
    background: #f0f0f0;
    color: #666;
}

/* Profilbild */
.mcmp-kennst-du-schon-bild {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    border: 3px solid #2d9adb;
    box-shadow: 0 2px 8px rgba(45, 154, 219, 0.2);
}

.mcmp-kennst-du-schon-bild img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Platzhalter-Icon wenn kein Bild vorhanden */
.mcmp-kennst-du-schon-bild-platzhalter {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8f4fc 0%, #d0e8f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2d9adb;
    font-size: 28px;
}

/* Info-Container */
.mcmp-kennst-du-schon-info {
    flex: 1;
    min-width: 0;
    padding-right: 20px;
}

/* "Kennst du schon?" Label */
.mcmp-kennst-du-schon-label {
    font-size: 11px;
    color: #2d9adb;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

/* Name */
.mcmp-kennst-du-schon-name {
    font-weight: 600;
    color: #2e3f51;
    font-size: 15px;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Firma */
.mcmp-kennst-du-schon-firma {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Hashtags/Kurzes über mich */
.mcmp-kennst-du-schon-hashtag {
    font-size: 12px;
    color: #2d9adb;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive Anpassungen */
@media (max-width: 480px) {
    .mcmp-kennst-du-schon-toast {
        bottom: 15px;
        right: 15px;
        left: 15px;
        max-width: none;
        width: auto;
    }

    .mcmp-kennst-du-schon-kachel {
        padding: 15px;
        gap: 12px;
    }

    .mcmp-kennst-du-schon-bild {
        width: 55px;
        height: 55px;
    }

    .mcmp-kennst-du-schon-name {
        font-size: 14px;
    }

    .mcmp-kennst-du-schon-firma {
        font-size: 12px;
    }

    .mcmp-kennst-du-schon-hashtag {
        font-size: 11px;
    }
}

/* Animation für sanftes Einblenden */
@keyframes mcmp-toast-einblenden {
    from {
        opacity: 0;
        transform: translateX(100%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes mcmp-toast-ausblenden {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateX(100%) scale(0.95);
    }
}
