/* Beliefmatch - Christian Singles Community Styles */

/* CSS Custom Properties (Variables) */
:root {
    /* Colors - Emerald theme for Christian community */
    --background: #ffffff;
    --foreground: #475569;
    --card: #f1f5f9;
    --card-foreground: #475569;
    --primary: #059669;
    --primary-foreground: #ffffff;
    --secondary: #10b981;
    --secondary-foreground: #ffffff;
    --muted: #f1f5f9;
    --muted-foreground: #64748b;
    --accent: #10b981;
    --accent-foreground: #ffffff;
    --border: #e2e8f0;
    --input: #ffffff;
    --ring: rgba(5, 150, 105, 0.5);
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    
    /* Border radius */
    --radius: 0.5rem;
    --radius-sm: 0.25rem;
    --radius-lg: 0.75rem;
    --radius-full: 9999px;
}

/* Reset und Basis-Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--foreground);
    background-color: var(--background);
    overflow-x: hidden;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary);
}

/* Button Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.btn-primary:hover {
    background-color: #047857;
}

.btn-ghost {
    background-color: transparent;
    color: var(--muted-foreground);
}

.btn-ghost:hover {
    background-color: var(--muted);
    color: var(--primary);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Header Styles */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--foreground);
    text-decoration: none;
}

.heart-icon {
    width: 2rem;
    height: 2rem;
    color: var(--primary);
    stroke-width: 2;
}

.logo-text {
    color: var(--foreground);
}

/* Desktop Navigation */
.nav-desktop {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.nav-link {
    color: var(--muted-foreground);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link.active {
    color: var(--primary);
    font-weight: 600;
}

/* Navigation Badge */
.nav-badge {
    background: #dc2626;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 7px;
    border-radius: 12px;
    border: none;
    box-shadow: 0 0 8px rgba(220, 38, 38, 0.4);
    min-width: 18px;
    text-align: center;
    line-height: 1;
    animation: pulse 2s infinite;
}

/* Header Navigation Tabs */
.nav-desktop .nav-tabs {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.nav-desktop .nav-tabs .nav-tab {
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    color: var(--muted-foreground);
    background: var(--background);
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s ease;
    position: relative;
}

.nav-desktop .nav-tabs .nav-tab:hover {
    background: var(--muted);
    color: var(--foreground);
}

.nav-desktop .nav-tabs .nav-tab.active {
    background: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}

/* Mobile Navigation Tabs */
.mobile-nav-tabs {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.mobile-nav-tabs .nav-tab {
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    color: var(--muted-foreground);
    background: var(--background);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s ease;
    position: relative;
}

.mobile-nav-tabs .nav-tab:hover {
    background: var(--muted);
    color: var(--foreground);
}

.mobile-nav-tabs .nav-tab.active {
    background: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}

/* CTA Buttons */
.nav-cta {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    gap: 0.25rem;
}

.hamburger {
    width: 100%;
    height: 2px;
    background-color: var(--foreground);
    transition: all 0.3s ease;
}

.mobile-menu-btn.active .hamburger:nth-child(1) {
    transform: rotate(45deg) translateY(7px);
}

.mobile-menu-btn.active .hamburger:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger:nth-child(3) {
    transform: rotate(-45deg) translateY(-7px);
}

.nav-mobile {
    display: none;
    padding: var(--spacing-lg) 0;
    border-top: 1px solid var(--border);
}

.nav-mobile.active {
    display: block;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.mobile-nav-link {
    color: var(--muted-foreground);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-nav-link:hover {
    color: var(--primary);
}

.mobile-nav-link.active {
    color: var(--primary);
    font-weight: 600;
}

.mobile-nav-cta {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

/* Main Content */
main {
    margin-top: 4rem;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 5rem 0 8rem;
    background: linear-gradient(135deg, var(--background) 0%, var(--muted) 100%);
    text-align: center;
}

.hero-content {
    max-width: 64rem;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: var(--spacing-lg);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    margin-bottom: var(--spacing-2xl);
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    justify-content: center;
    margin-bottom: var(--spacing-3xl);
}

/* Trust Indicators */
.trust-indicators {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
    max-width: 48rem;
    margin: 0 auto;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.trust-icon {
    width: 3rem;
    height: 3rem;
    background-color: rgba(5, 150, 105, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.trust-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--primary);
    stroke-width: 2;
}

.trust-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: var(--spacing-xs);
}

.trust-item p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.5;
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    max-width: 32rem;
    margin: 0 auto;
    line-height: 1.6;
}

/* Features Section */
.features {
    background-color: var(--background);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-xl);
}

.feature-card {
    background-color: var(--card);
    padding: var(--spacing-xl);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-0.25rem);
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    background-color: rgba(5, 150, 105, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.feature-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--primary);
    stroke-width: 2;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--card-foreground);
    margin-bottom: var(--spacing-md);
}

.feature-card p {
    color: var(--muted-foreground);
    line-height: 1.6;
}

/* Testimonials Section */
.testimonials {
    background-color: var(--muted);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-xl);
}

.testimonial-card {
    background-color: var(--background);
    padding: var(--spacing-xl);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.testimonial-content {
    margin-bottom: var(--spacing-lg);
}

.testimonial-content p {
    font-style: italic;
    color: var(--foreground);
    line-height: 1.6;
    font-size: 1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.author-avatar {
    width: 3rem;
    height: 3rem;
    background-color: var(--primary);
    color: var(--primary-foreground);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.author-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.125rem;
}

.author-info span {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Community Section */
.community {
    background-color: var(--background);
}

.community-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.community-text h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: var(--spacing-lg);
    line-height: 1.2;
}

.community-text p {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
}

.community-stats {
    display: flex;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--spacing-xs);
}

.stat p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin: 0;
}

.community-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 20rem;
    height: 15rem;
    background-color: var(--muted);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--border);
}

.image-placeholder svg {
    width: 4rem;
    height: 4rem;
    color: var(--muted-foreground);
    stroke-width: 1;
}

/* Footer */
.footer {
    background-color: var(--foreground);
    color: var(--background);
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
    margin-top: var(--spacing-3xl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--background);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-section ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section ul li a:hover {
    color: var(--background);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.footer-section p {
    color: #94a3b8;
    line-height: 1.6;
    margin: 0;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: var(--spacing-lg);
    text-align: center;
}

.footer-bottom p {
    color: #94a3b8;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) and (min-width: 769px) {
    /* Reduce navigation spacing on tablets */
    .nav-desktop {
        gap: var(--spacing-md);
    }
}

@media (max-width: 768px) {
    /* Header - IMMER sticky auf Mobile */
    .header {
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        z-index: 9998 !important;
        box-shadow: var(--shadow-sm);
    }
    
    .nav-desktop,
    .nav-cta {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
        z-index: 10003 !important; /* Über allem anderen */
    }
    
    /* Hero */
    .hero {
        padding: 4rem 0 6rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .trust-indicators {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    /* Community */
    .community-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        text-align: center;
    }
    
    .community-stats {
        justify-content: center;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .hero {
        padding: 3rem 0 4rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .community-stats {
        flex-direction: column;
        gap: var(--spacing-lg);
    }
    
    .features-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .feature-card,
    .testimonial-card {
        padding: var(--spacing-lg);
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth transitions */
* {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

/* Focus states for accessibility */
.btn:focus,
.nav-link:focus,
.mobile-nav-link:focus {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
}

/* Loading states */
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border: #000000;
        --muted-foreground: #000000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== Unified App Layout Additions (Dashboard / Chat / Search) ===== */
.app-shell { max-width:1200px; margin:0 auto; padding: var(--spacing-xl) var(--spacing-lg); margin-top: 4rem; }
.app-nav { display:flex; justify-content:space-between; align-items:center; margin-bottom: var(--spacing-xl); }
.app-nav .nav-tabs { display:flex; gap: var(--spacing-sm); flex-wrap:wrap; }
.app-nav .nav-tabs a { text-decoration:none; font-weight:500; font-size:.85rem; padding: .55rem .9rem; border-radius: var(--radius); color: var(--muted-foreground); background: var(--background); border:1px solid var(--border); display:inline-flex; align-items:center; gap:.35rem; }
.app-nav .nav-tabs a:hover { background: var(--muted); color: var(--foreground); }
.app-nav .nav-tabs a.active { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }
.app-nav .right-actions { display:flex; gap:.5rem; }

/* Cards */
.card { background: var(--background); border:1px solid var(--border); border-radius: var(--radius-lg); padding: var(--spacing-lg); box-shadow: var(--shadow-sm); position:relative; }
.card.flat { box-shadow:none; }
.card-header { display:flex; align-items:center; gap: var(--spacing-md); margin-bottom: var(--spacing-md); }
.card-title { font-size:1rem; font-weight:600; margin:0; }
.card-muted { color: var(--muted-foreground); font-size:.8rem; }

/* Grid helpers */
.grid-auto { display:grid; gap: var(--spacing-lg); }
.grid-cards { display:grid; gap: var(--spacing-md); grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); }

/* Sidebar filter panel */
.filter-layout { display:flex; align-items:flex-start; gap: var(--spacing-lg); }
.filter-panel { width:270px; position:sticky; top:1rem; align-self:flex-start; }
@media (max-width: 900px){
    .filter-layout { flex-direction:column; }
    .filter-panel { width:100%; position:static; }
    .grid-cards { grid-template-columns: repeat(auto-fill,minmax(160px,1fr)); }
}

/* Form elements */
.form-field { margin-bottom: .9rem; }
.form-field label { display:block; font-size:.65rem; font-weight:600; text-transform:uppercase; letter-spacing:.05em; margin-bottom:.35rem; color: var(--muted-foreground); }
.input, select, textarea { width:100%; padding:.55rem .7rem; border:1px solid var(--border); border-radius: var(--radius-sm); background: var(--input); font:inherit; font-size:.85rem; }
select:focus, .input:focus, textarea:focus { outline:2px solid var(--ring); outline-offset:2px; }

/* Utility */
.muted { color: var(--muted-foreground); }
.spacer-sm { height: var(--spacing-sm); }
.spacer-md { height: var(--spacing-md); }
.flex { display:flex; }
.items-center { align-items:center; }
.justify-between { justify-content:space-between; }
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }

/* Buttons refinement */
.btn-sm { padding: .45rem .8rem; font-size:.75rem; }
.btn-secondary { background: var(--secondary); color: var(--secondary-foreground); }
.btn-secondary:hover { background:#0d946b; }

/* Chat specific tweaks using unified tokens */
.chat-wrapper { display:flex; border:1px solid var(--border); background: var(--background); border-radius: var(--radius-lg); overflow:hidden; min-height:65vh; }
.chat-sidebar { width:300px; border-right:1px solid var(--border); display:flex; flex-direction:column; background: var(--card); }
.chat-sidebar-header { padding: var(--spacing-md); border-bottom:1px solid var(--border); display:flex; justify-content:space-between; align-items:center; }
.chat-conversations { flex:1; overflow-y:auto; }
.chat-conv-item { padding:.75rem var(--spacing-md); border-bottom:1px solid var(--border); cursor:pointer; display:flex; gap:.75rem; align-items:center; transition: background .15s; font-size:.75rem; }
.chat-conv-item:hover { background: var(--muted); }
.chat-conv-item.active { background: var(--primary); color: var(--primary-foreground); }
.chat-avatar { width:40px; height:40px; border-radius:50%; background: var(--primary); color:#fff; font-weight:600; font-size:.8rem; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.chat-main { flex:1; display:flex; flex-direction:column; }
.chat-main-header { padding: var(--spacing-md); border-bottom:1px solid var(--border); display:flex; gap:.75rem; align-items:center; }
.chat-messages { flex:1; overflow-y:auto; padding: var(--spacing-md); display:flex; flex-direction:column; background: var(--background); }
.chat-msg { max-width:68%; padding:.55rem .75rem; border-radius:14px; margin-bottom:.65rem; font-size:.75rem; line-height:1.2rem; position:relative; }
.chat-msg.out { background: var(--primary); color: var(--primary-foreground); margin-left:auto; border-bottom-right-radius:4px; }
.chat-msg.in { background: var(--muted); color: var(--foreground); border-bottom-left-radius:4px; }
.chat-msg time { display:block; font-size:.5rem; opacity:.6; margin-top:.25rem; }
.chat-input-bar { border-top:1px solid var(--border); padding:.65rem .75rem; display:flex; gap:.6rem; background: var(--card); }
.chat-input-bar textarea { flex:1; resize:none; height:52px; }
@media (max-width:900px){ .chat-wrapper { flex-direction:column; } .chat-sidebar { width:100%; height:220px; } .chat-conversations { flex:1; } }

/* Search page specifics */
.search-results-grid { display:grid; gap: var(--spacing-md); grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); }
.member-card { border:1px solid var(--border); border-radius: var(--radius); background: var(--background); padding: var(--spacing-md); display:flex; flex-direction:column; gap:.5rem; }
.member-card .top { display:flex; gap:.75rem; }
.member-card img { width:72px; height:72px; border-radius:50%; object-fit:cover; background: var(--muted); }
.member-meta { display:flex; flex-wrap:wrap; gap:.35rem; font-size:.65rem; color: var(--muted-foreground); }
.member-actions { display:flex; justify-content:space-between; align-items:center; margin-top:.25rem; }

/* Badges / tags */
.tag { background: var(--muted); color: var(--muted-foreground); padding:.15rem .5rem; border-radius:999px; font-size:.6rem; font-weight:500; }

/* Badge animation */
@keyframes pulse {
    0% { box-shadow: 0 0 8px rgba(220, 38, 38, 0.4); }
    50% { box-shadow: 0 0 15px rgba(220, 38, 38, 0.7); }
    100% { box-shadow: 0 0 8px rgba(220, 38, 38, 0.4); }
}

/* Unread count badges for chat conversations */
.unread-badge {
    background: #ef4444;
    color: white;
    border-radius: 12px;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 600;
    min-width: 16px;
    text-align: center;
    margin-left: auto;
    display: inline-block;
    line-height: 1.2;
    box-shadow: 0 1px 3px rgba(239, 68, 68, 0.3);
}

/* Chat conversation item styling for unread badges */
.conversation-name-v2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-weight: 500;
    margin-bottom: 4px;
}

.conversation-item-v2.has-unread .conversation-name-v2 {
    font-weight: 600;
}
