﻿/* =========================
   Light / Auto Mode (Dating Style)
   ========================= */
:root,
:root[data-bs-theme="light"] {
    --dating-pink: #fa57c1;
    --dating-pink-dark: #ff2a7b;
    --dating-blue: #6a96ff;
    --dating-blue-dark: #3d4d79;
    --dating-light: #fff9fc;
    --dating-white: #fff;
    --dating-black: #232323;
    --dating-grey: #bbb;
    /* Bootstrap Core Variables */
    --bs-body-bg: var(--dating-light);
    --bs-body-color: var(--dating-black);
    --bs-primary: var(--dating-pink);
    --bs-link-color: var(--dating-blue);
    --bs-border-color: var(--dating-grey);
    /* Dropdowns */
    --bs-dropdown-bg: var(--dating-white);
    --bs-dropdown-color: var(--dating-black);
    --bs-dropdown-link-color: var(--dating-black);
    --bs-dropdown-link-hover-bg: var(--dating-pink);
    --bs-dropdown-link-hover-color: #fff;
    --bs-dropdown-link-active-bg: var(--dating-blue);
    --bs-dropdown-link-active-color: #fff;
    --bs-dropdown-border-color: var(--dating-grey);
}

    /* =========================
   Dark Mode (Dating Style)
   ========================= */
    :root[data-bs-theme="dark"] {
        --dating-pink: #ff69b4;
        --dating-pink-dark: #fa2b82;
        --dating-blue: #94bbff;
        --dating-blue-dark: #4a65ad;
        --dating-light: #263047;
        --dating-white: #18181c;
        --dating-black: #fafeff;
        --dating-grey: #666;
        /* Bootstrap Core Variables */
        --bs-body-bg: var(--dating-light);
        --bs-body-color: var(--dating-black);
        --bs-primary: var(--dating-pink);
        --bs-link-color: var(--dating-blue);
        --bs-border-color: var(--dating-grey);
        /* Dropdowns */
        --bs-dropdown-bg: var(--dating-white);
        --bs-dropdown-color: var(--dating-black);
        --bs-dropdown-link-color: var(--dating-black);
        --bs-dropdown-link-hover-bg: var(--dating-pink);
        --bs-dropdown-link-hover-color: #fff;
        --bs-dropdown-link-active-bg: var(--dating-blue);
        --bs-dropdown-link-active-color: #fff;
        --bs-dropdown-border-color: var(--dating-grey);
    }

/* =========================
   Gemeinsame & dynamische Styles
   ========================= */

/* Basis-Styling - alles nutzt die neuen Variablen! */
body {
    background-color: var(--bs-body-bg) !important;
    color: var(--bs-body-color) !important;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
}

/* Dropdowns */
.dropdown-menu {
    background-color: var(--bs-dropdown-bg) !important;
    color: var(--bs-dropdown-color) !important;
    border: 1px solid var(--bs-dropdown-border-color);
    border-radius: 0.7em;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
    padding: 0.5em 0;
    min-width: 220px;
    z-index: 1050;
}

/* Dropdown-Items */
.dropdown-item {
    background-color: transparent;
    color: var(--bs-dropdown-link-color);
    font-family: inherit;
    font-weight: 500;
    border-radius: 0.4em;
    margin: 0 0.5em;
    padding: 0.6em 1.2em;
    transition: background 0.2s, color 0.2s;
}

    .dropdown-item:hover,
    .dropdown-item:focus,
    .dropdown-item.active {
        background-color: var(--bs-dropdown-link-hover-bg) !important;
        color: var(--bs-dropdown-link-hover-color) !important;
        font-weight: bold;
        border-left: 4px solid #fff;
    }

/* Buttons */
.btn {
    color: #fff !important;
    background-color: var(--bs-primary) !important;
    border: none;
    border-radius: 2rem;
    padding: 0.75rem 2rem;
    font-size: 1.15rem;
    box-shadow: 0 2px 12px var(--dating-pink);
    transition: background 0.2s, transform 0.2s;
}

    .btn:hover, .btn:focus {
        background: var(--bs-link-color) !important;
        color: #fff !important;
        transform: scale(1.05);
    }

.btn-primary {
    background-color: var(--bs-primary);
    border: none;
    border-radius: 2rem;
    box-shadow: 0 2px 8px rgba(250, 87, 193, 0.25);
}

    .btn-primary:hover {
        background: var(--dating-pink-dark);
    }


/* Formulare */
.form-control, .form-check-input {
    border-radius: 2rem;
    border: 2px solid var(--bs-primary);
    padding: 0.5rem 1.2rem;
    font-size: 1.05rem;
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    transition: border 0.2s;
}

    .form-control:focus, .form-check-input:focus {
        border: 2.5px solid var(--bs-link-color);
        box-shadow: 0 0 8px var(--bs-link-color);
    }

/* Links */
a, .btn-link {
    color: var(--bs-primary);

    a {
        color: var(--bs-link-color);
        text-decoration: none;
    }

        a:hover {
            text-decoration: underline;
        }

    transition: border 0.2s, color 0.2s;
}

    a:hover, .btn-link:hover {
        color: var(--bs-link-color);
        border-bottom: 2px solid var(--bs-link-color);
    }

/* Headings */
h1, h2, h3 {
    color: var(--bs-primary);
    font-weight: bold;
    text-shadow: 1px 2px 8px var(--bs-dropdown-bg);
}

    h1:focus {
        outline: none;
    }

/* USP: animiertes Herz/Chat für Branding */
.matching-animation {
    animation: pulseMatch 1.2s infinite alternate;
    background: linear-gradient(90deg, var(--bs-primary) 60%, var(--dating-pink-dark) 100%);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

@keyframes pulseMatch {
    0% {
        transform: scale(1);
        box-shadow: 0 0 18px var(--bs-primary);
    }

    100% {
        transform: scale(1.09);
        box-shadow: 0 0 38px var(--bs-link-color);
    }
}


.brand-bar {
    position: relative;
    z-index: 1030;
}

.navbar .nav-link.active {
    font-weight: 600;
    border-bottom: 2px solid var(--bs-primary);
}



/* Weitere Anpassungen für Karten, Tabellen, etc. kannst du wie bisher über die Variablen steuern! */
.e-card.profile-card {
    width: 260px !important;
    max-width: 260px !important;
    padding: 0 !important;
    margin: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.profile-thumb {
    width: 260px;
    height: 180px;
    overflow: hidden;
    flex-shrink: 0;
}

    .profile-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.profile-grid {
    display: grid;
    grid-template-columns: repeat(4, 260px);
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.match-badge {
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
    white-space: nowrap;
}

.match-high {
    background: rgba(25, 135, 84, 0.15);
    color: #198754;
}

.match-good {
    background: #d6e9ff;
    color: #0b5ed7;
}

.match-medium {
    background: #fff3cd;
    color: #b58105;
}

.match-low {
    background: #e9ecef;
    color: #6c757d;
}

.match-details {
    font-size: 0.75rem;
    color: #6c757d;
}

.score-item {
    cursor: help;
    text-decoration: dotted underline;
}

.legend-box {
    width: 20px;
    height: 20px;
    border-radius: .25rem;
    display: inline-block;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.chat-bubble {
    background: #f5f6f8;
    padding: 6px 10px;
    border-radius: 8px;
    max-width: 600px;
    word-break: break-word;
}
.notification-item {
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
}

.notification-item:hover {
    background-color: #f8f9fa;
}
.match-progress-gold .e-progressbar-value {
    background-color: var(--gold);
}

/*.profile-carousel-sm {
    height: 240px;
}*/

.profile-carousel {
    height: 520px !important;
}

.carousel-image-wrapper {
    position: relative; /* 🔥 entscheidend */
    height: 100%;
    width: 100%;
    overflow: hidden;
    border-radius: .5rem;
}

    .carousel-image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
    }

        /* 🔒 Blur für Non-Premium */
        .carousel-image-wrapper img.photo-blur {
            filter: blur(18px) brightness(0.65);
            transform: scale(1.05);
        }

/* 🔒 Premium Overlay (final) */
.premium-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    z-index: 10;
}

.overlay-content {
    font-weight: 600;
}






.common-chip {
    font-size: 0.95rem; /* größer & gut lesbar */
    font-weight: 600; /* visuelles Gewicht */
    padding: 0.45rem 0.9rem; /* „Button-Feeling“ */
    border-radius: 999px; /* Pill-Style */
    background-color: #f8f9fa; /* ruhiger Highlight-Hintergrund */
    border: 1.5px solid #198754; /* Akzentfarbe (z. B. success) */
    color: #198754;
}
.e-toast-container {
    z-index: 5000 !important;
}

.e-toast {
    min-width: 360px;
}

.profile-image-wrapper {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    border-radius: .375rem;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 🔒 Demo-Label */
.demo-badge {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: clamp(0.75rem, 2.5vw, 0.95rem);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
    pointer-events: none;
}


.photo-blur {
    filter: blur(18px) brightness(0.7);
    transform: scale(1.1);
    pointer-events: none;
}

.profile-carousel img.photo-blur {
    filter: blur(35px) brightness(0.6) !important;
    transform: scale(1.08);
}



.blur-wrapper {
    position: relative;
    overflow: hidden;
}



.upgrade-hint {
    font-size: 0.85rem;
    margin-top: 6px;
    opacity: 0.85;
}

footer a {
    text-decoration: none;
}

    footer a:hover {
        text-decoration: underline;
    }

.interest-item {
    transition: all 0.15s ease;
    cursor: default;
    background: var(--bs-body-bg);
}

    .interest-item:hover {
        background: var(--bs-primary);
        color: #fff;
        transform: translateY(-2px);
    }