/* ===================================================================
   Zemra Discovery Sections
   Horizontal scrollbare Profil-Karussells - wie Netflix/Tinder
   =================================================================== */

.zemra-page-discovery {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 16px;
    background: transparent !important;
}

.zemra-discovery-container > * + * {
    margin-top: 32px;
}

.zemra-discovery-section {
    margin: 32px 0;
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
}

/* Theme-Reset für H-Tags innerhalb der Discovery-Sektion */
.zemra-discovery-section h1,
.zemra-discovery-section h2,
.zemra-discovery-section h3,
.zemra-discovery-section h4,
.zemra-page-discovery h1,
.zemra-page-discovery h2,
.zemra-page-discovery h3,
.zemra-page-discovery h4 {
    background: transparent !important;
    background-image: none !important;
    -webkit-text-fill-color: inherit !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    text-shadow: none !important;
    color: #1a1a1a !important;
}

/* === Header === */
.zemra-page-discovery .zds-header,
.zemra-discovery-section .zds-header {
    margin-bottom: 16px;
    padding: 0 4px;
    background: transparent;
}

/* WICHTIG: Title-Farbe mit !important damit Themes (Astra etc.) sie nicht überschreiben */
.zemra-page-discovery .zds-title,
.zemra-discovery-section .zds-title,
.zemra-discovery-container .zds-title,
h1.zds-title, h2.zds-title, h3.zds-title, h4.zds-title {
    font-size: 22px !important;
    font-weight: 700 !important;
    margin: 0 0 4px !important;
    color: #1a1a1a !important;
    background: transparent !important;
    background-image: none !important;
    -webkit-text-fill-color: #1a1a1a !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    text-shadow: none !important;
    line-height: 1.3 !important;
    padding: 0 !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap;
    gap: 8px;
}

/* Emojis innerhalb des Titels: Theme könnte sie als Bilder rendern → verhindern */
.zds-title img,
.zds-title .emoji,
.zds-title img.emoji,
.zds-title img.wp-smiley {
    display: inline !important;
    width: 1.2em !important;
    height: 1.2em !important;
    max-height: 1.2em !important;
    max-width: 1.2em !important;
    margin: 0 4px 0 0 !important;
    padding: 0 !important;
    vertical-align: middle !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Falls Theme den Untertitel auch versaut */
.zemra-page-discovery .zds-subtitle,
.zemra-discovery-section .zds-subtitle {
    font-size: 14px !important;
    color: #6b7280 !important;
    background: transparent !important;
    -webkit-text-fill-color: #6b7280 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
    font-weight: 400 !important;
}

/* === Horizontal Scroll Container === */
.zds-scroll-wrapper {
    position: relative;
    overflow: hidden;
}

.zds-cards {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding: 4px 4px 16px 4px;
}

/* Scrollbar dezent stylen */
.zds-cards::-webkit-scrollbar {
    height: 6px;
}
.zds-cards::-webkit-scrollbar-track {
    background: transparent;
}
.zds-cards::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 3px;
}
.zds-cards::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}

/* === Profil-Karte === */
.zemra-discovery-section .zds-card,
.zemra-page-discovery .zds-card {
    flex: 0 0 auto;
    width: 170px;
    border-radius: 14px;
    overflow: hidden;
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-decoration: none !important;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    scroll-snap-align: start;
    display: block;
    border: none !important;
}

.zemra-discovery-section .zds-card:hover,
.zemra-page-discovery .zds-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    text-decoration: none !important;
}

.zds-card-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
}

/* Card-Info: Theme-resistente Box mit Name und Stadt */
.zemra-discovery-section .zds-card-info,
.zemra-page-discovery .zds-card-info {
    padding: 10px 12px !important;
    background: #fff !important;
    color: #1a1a1a !important;
}

.zemra-discovery-section .zds-card-name,
.zemra-page-discovery .zds-card-name {
    font-size: 14px !important;
    line-height: 1.3 !important;
    color: #1a1a1a !important;
    margin-bottom: 2px !important;
    -webkit-text-fill-color: #1a1a1a !important;
}

.zemra-discovery-section .zds-card-name strong,
.zemra-page-discovery .zds-card-name strong {
    font-weight: 600 !important;
    color: inherit !important;
}

.zemra-discovery-section .zds-card-location,
.zemra-page-discovery .zds-card-location {
    font-size: 12px !important;
    color: #6b7280 !important;
    -webkit-text-fill-color: #6b7280 !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Online-Punkt (grüner Dot oben rechts) */
.zds-card-online {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 12px;
    height: 12px;
    background: #4ade80;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
    animation: zdsPulse 2s infinite;
}

@keyframes zdsPulse {
    0%, 100% { box-shadow: 0 0 8px rgba(74, 222, 128, 0.6); }
    50% { box-shadow: 0 0 14px rgba(74, 222, 128, 0.9); }
}

/* Verified-Badge */
.zds-card-verified {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: linear-gradient(135deg, #4f9eff, #2563eb);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.4);
}

/* === Premium-Lock === */
.zds-premium-lock {
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
    border: 2px dashed #ffc4c4;
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
}

.zds-lock-content .zds-lock-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.zds-lock-content h3 {
    font-size: 20px;
    color: #1a1a1a;
    margin: 0 0 16px;
}

/* === Mobile === */
@media (max-width: 768px) {
    .zds-card {
        width: 140px;
    }
    
    .zds-title {
        font-size: 18px;
    }
    
    .zds-subtitle {
        font-size: 13px;
    }
    
    .zemra-page-discovery {
        margin: 24px auto;
    }
    
    .zemra-discovery-section {
        margin: 24px 0;
    }
}

@media (max-width: 480px) {
    .zds-card {
        width: 130px;
    }
}

/* === Dark Mode Support (falls Theme das nutzt) === */
@media (prefers-color-scheme: dark) {
    .zds-card {
        background: #1f1f1f;
    }
    .zds-card-name {
        color: #fff;
    }
    .zds-title {
        color: #fff;
    }
    .zds-card-location {
        color: #aaa;
    }
}

/* === TIER-BADGES (💎 Plus / 👑 Gold neben Sektion-Title) === */
.zds-tier-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 10px;
    margin-left: 8px;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.zds-tier-plus {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    color: #fff;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
}

.zds-tier-gold {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #fff;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4);
}

/* === TIER-LOCK CARDS (für gesperrte Sektionen) === */
.zds-tier-lock {
    position: relative;
    background: linear-gradient(135deg, #fef7ed 0%, #fff 100%);
    border-radius: 16px;
    padding: 24px;
    border: 2px dashed #fbbf24;
    overflow: hidden;
}

.zds-tier-lock-plus {
    background: linear-gradient(135deg, #eff6ff 0%, #fff 100%);
    border-color: #60a5fa;
}

.zds-tier-lock-gold {
    background: linear-gradient(135deg, #fef3c7 0%, #fff 100%);
    border-color: #f59e0b;
}

/* Glitzer-Effekt im Hintergrund */
.zds-tier-lock::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.zds-tier-lock-plus::before {
    background: radial-gradient(circle, rgba(96, 165, 250, 0.15) 0%, transparent 70%);
}

.zds-tier-lock .zds-header {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.zds-tier-lock .zds-title {
    justify-content: center;
}

.zds-lock-card {
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 16px 20px;
}

.zds-lock-icon {
    font-size: 42px;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.zds-lock-text {
    font-size: 16px;
    color: #555;
    margin: 0 0 16px;
    font-weight: 500;
}

.zds-lock-btn {
    font-size: 16px !important;
    padding: 12px 28px !important;
    box-shadow: 0 4px 14px rgba(255, 68, 88, 0.4) !important;
}

.zds-lock-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 68, 88, 0.5) !important;
}

/* Mobile-Anpassungen */
@media (max-width: 768px) {
    .zds-tier-badge {
        font-size: 10px;
        padding: 2px 7px;
    }
    
    .zds-lock-icon {
        font-size: 36px;
    }
    
    .zds-lock-text {
        font-size: 14px;
    }
}
