/* Community & Social Features CSS */

/* Online Presence Indicator */
.online-indicator-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 9999px;
    font-size: 0.825rem;
    font-weight: 600;
    color: #10b981;
    transition: all 0.2s ease;
}

.online-indicator-pill:hover {
    background: rgba(16, 185, 129, 0.18);
}

.online-dot {
    width: 9px;
    height: 9px;
    background-color: #10b981;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}

.online-dot::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background-color: #10b981;
    opacity: 0.6;
    animation: pulse-ring 1.8s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.7);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.6);
        opacity: 0;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* Community Container */
.community-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 1rem 0;
}

/* Community Hero Banner */
.community-hero {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border-radius: var(--radius-lg, 1rem);
    padding: 2rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.community-hero h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 0.4rem 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.community-hero p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

.community-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.community-stat-card {
    background: var(--surface, #ffffff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: var(--radius-md, 0.75rem);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
}

.stat-icon-wrapper {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-icon-indigo { background: rgba(79, 70, 229, 0.1); color: #4f46e5; }
.stat-icon-emerald { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.stat-icon-amber { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.stat-icon-rose { background: rgba(244, 63, 94, 0.1); color: #f43f5e; }

.stat-number {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-main, #111827);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted, #6b7280);
    font-weight: 500;
}

/* Prayer Cards */
.prayer-card {
    background: var(--surface, #ffffff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: var(--radius-md, 0.75rem);
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.prayer-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.prayer-author {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary, #4f46e5);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.prayer-time {
    font-size: 0.75rem;
    color: var(--text-muted, #9ca3af);
    margin-left: auto;
}

.prayer-text {
    font-size: 0.95rem;
    color: var(--text-main, #1f2937);
    margin: 0.75rem 0;
    line-height: 1.5;
    white-space: pre-wrap;
}

.prayer-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--border, #f3f4f6);
}

.btn-pray {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    background: var(--surface-secondary, #f3f4f6);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 20px;
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--text-main, #374151);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-pray:hover {
    background: rgba(79, 70, 229, 0.1);
    border-color: rgba(79, 70, 229, 0.3);
    color: #4f46e5;
}

.btn-pray.prayed {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.4);
    color: #059669;
}

/* Dark Mode Contrast Fix for Prayer Buttons */
.dark .btn-pray {
    background: #1f2937;
    border-color: #374151;
    color: #f3f4f6;
}

.dark .btn-pray:hover {
    background: rgba(79, 70, 229, 0.3);
    border-color: #6366f1;
    color: #a5b4fc;
}

.dark .btn-pray.prayed {
    background: rgba(16, 185, 129, 0.25);
    border-color: #10b981;
    color: #34d399;
}

/* Session Notes Styling */
.community-notes-panel {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border, #e5e7eb);
}

.community-note-card {
    background: var(--surface, #ffffff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: var(--radius-md, 0.75rem);
    padding: 1rem 1.25rem;
    margin-bottom: 0.85rem;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.community-note-card:hover {
    border-color: var(--primary, #4f46e5);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.1);
}

.note-preview-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-main, #111827);
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.note-preview-title:hover {
    color: var(--primary, #4f46e5);
}

.community-note-card.featured-note {
    border: 2px solid #f59e0b;
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.3) 0%, var(--surface, #ffffff) 100%);
}

.featured-crown-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: #f59e0b;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 0.5rem;
}

.note-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.note-author-tag {
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--text-main, #111827);
}

.note-upvote-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    border-radius: 16px;
    background: var(--surface-secondary, #f3f4f6);
    border: 1px solid var(--border, #e5e7eb);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted, #4b5563);
    cursor: pointer;
    transition: all 0.2s ease;
}

.note-upvote-btn:hover {
    background: rgba(79, 70, 229, 0.1);
    color: #4f46e5;
    border-color: rgba(79, 70, 229, 0.3);
}

.note-upvote-btn.upvoted {
    background: rgba(79, 70, 229, 0.15);
    color: #4f46e5;
    border-color: #4f46e5;
}

/* Challenge Section */
.challenge-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(59, 130, 246, 0.08) 100%);
    border: 1.5px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-lg, 1rem);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.challenge-badge {
    display: inline-block;
    background: #10b981;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 12px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
