/**
 * Community â€” Profile Public Page
 *
 * @package DivinationChaloce\Core
 */

.dc-community-profile-wrapper {
    background: #f7f7f9;
    padding: 0 0 40px;
    min-height: 70vh;
}

.dc-community-profile-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================
 * Profile Hero
 * ============================================================ */

.dc-profile-hero {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    margin-top: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    position: relative;
}

.dc-profile-cover {
    height: 200px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    position: relative;
    overflow: hidden;
}

.dc-profile-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="15" fill="rgba(255,255,255,0.08)"/><circle cx="80" cy="30" r="25" fill="rgba(255,255,255,0.06)"/><circle cx="50" cy="80" r="20" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: 300px;
    opacity: 0.7;
}

.dc-profile-avatar-wrapper {
    position: relative;
    margin-top: -60px;
    margin-inline-start: 30px;
    z-index: 2;
    display: inline-block;
}

.dc-profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 5px solid #fff;
    background: #fff;
    display: block;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.dc-profile-header-info {
    padding: 16px 30px 24px;
}

.dc-profile-name {
    font-size: 26px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.dc-profile-name .dc-badge {
    width: 24px;
    height: 24px;
    font-size: 14px;
    background: #3b82f6;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.4);
}

.dc-profile-username {
    color: #999;
    font-size: 14px;
    margin: 0 0 12px;
}

.dc-profile-expertise {
    font-size: 15px;
    color: #6366f1;
    font-weight: 600;
    margin: 0 0 10px;
}

.dc-profile-bio {
    font-size: 15px;
    color: #444;
    line-height: 1.7;
    margin: 0;
    max-width: 600px;
}

/* ============================================================
 * Profile Actions
 * ============================================================ */

.dc-profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 30px 24px;
}

.dc-btn-following {
    background: #f0f0f5;
    border-color: #f0f0f5;
    color: #333;
}

.dc-btn-following:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #991b1b;
}

/* ============================================================
 * Profile Stats
 * ============================================================ */

.dc-profile-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 16px 30px;
    background: #fafafa;
    border-top: 1px solid #f0f0f5;
}

.dc-stat-item {
    flex: 1;
    min-width: 100px;
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    transition: background 0.15s;
}

.dc-stat-item:hover {
    background: #fff;
}

.dc-stat-item strong {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: #6366f1;
    margin-bottom: 2px;
}

.dc-stat-item span {
    display: block;
    font-size: 12px;
    color: #999;
}

/* ============================================================
 * Profile Notes
 * ============================================================ */

.dc-profile-notes {
    margin-top: 24px;
}

.dc-profile-notes > h2 {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin: 0 0 16px;
    padding-inline-start: 12px;
    border-inline-start: 4px solid #6366f1;
}

.dc-notes-feed {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ============================================================
 * Profile Card Variations (for lists)
 * ============================================================ */

.dc-profile-card-expert {
    position: relative;
}

.dc-profile-card-expert .dc-profile-card-link::after {
    content: 'ðŸ”®';
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    font-size: 14px;
}

.dc-profile-card-counselor .dc-profile-card-link::after {
    content: 'ðŸ’¬';
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    font-size: 14px;
}

/* ============================================================
 * Responsive
 * ============================================================ */

@media (max-width: 600px) {
    .dc-community-profile-container {
        padding: 0 12px;
    }

    .dc-profile-hero {
        border-radius: 16px;
    }

    .dc-profile-cover {
        height: 140px;
    }

    .dc-profile-avatar-wrapper {
        margin-inline-start: 20px;
    }

    .dc-profile-avatar {
        width: 90px;
        height: 90px;
        border-width: 4px;
    }

    .dc-profile-header-info {
        padding: 12px 20px 20px;
    }

    .dc-profile-name {
        font-size: 20px;
    }

    .dc-profile-actions {
        padding: 0 20px 20px;
        flex-direction: column;
    }

    .dc-profile-actions .dc-btn {
        width: 100%;
    }

    .dc-profile-stats {
        padding: 12px 20px;
    }

    .dc-stat-item {
        flex: 0 0 calc(50% - 6px);
    }

    .dc-stat-item strong {
        font-size: 18px;
    }
}
/* ============================================================
 * Profile Details — اطلاعات تکمیلی
 * ============================================================ */

.dc-profile-details-section {
    background: #fff;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
}

.dc-profile-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin: 0 0 20px;
    padding-inline-start: 12px;
    border-inline-start: 4px solid #6366f1;
}

.dc-profile-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.dc-profile-detail {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: #fafbfc;
    border: 1px solid #f0f0f5;
    border-radius: 12px;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.dc-profile-detail:hover {
    background: #f5f7ff;
    border-color: #e0e4ff;
}

.dc-profile-detail--wide {
    grid-column: 1 / -1;
}

.dc-profile-detail-icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.dc-profile-detail-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.dc-profile-detail-label {
    font-size: 12px;
    color: #999;
    font-weight: 500;
}

.dc-profile-detail-value {
    font-size: 15px;
    color: #222;
    font-weight: 600;
    word-break: break-word;
    line-height: 1.6;
}

/* ============================================================
 * Verified & Private Badges
 * ============================================================ */

.dc-profile-verified-badge {
    position: absolute;
    bottom: 6px;
    inset-inline-end: 6px;
    width: 28px;
    height: 28px;
    background: #3b82f6;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
    z-index: 3;
}

.dc-profile-private-badge {
    position: absolute;
    bottom: 6px;
    inset-inline-start: 6px;
    width: 28px;
    height: 28px;
    background: #f0ad4e;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(240, 173, 78, 0.4);
    z-index: 3;
}

/* ============================================================
 * Empty State — برای پروفایل یافت نشد / خصوصی
 * ============================================================ */

.dc-community-profile-wrapper .dc-empty-state {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 20px;
    margin-top: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.dc-community-profile-wrapper .dc-empty-state h1 {
    font-size: 24px;
    font-weight: 800;
    color: #222;
    margin: 0 0 12px;
}

.dc-community-profile-wrapper .dc-empty-state p {
    font-size: 15px;
    color: #666;
    margin: 0 0 24px;
    line-height: 1.7;
}

.dc-community-profile-wrapper .dc-empty-state .dc-btn {
    display: inline-flex;
}

/* ============================================================
 * Responsive — اطلاعات تکمیلی
 * ============================================================ */

@media (max-width: 600px) {
    .dc-profile-details-section {
        padding: 20px;
        border-radius: 16px;
    }

    .dc-profile-details-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .dc-profile-detail {
        padding: 12px 14px;
    }

    .dc-profile-detail-value {
        font-size: 14px;
    }
}