﻿/* ============================================================
      COMMUNITY MEMBER PROFILE STYLES
    ============================================================ */

    .profile-hero {
        padding: 2rem 0 2rem;
        background: linear-gradient(135deg, #0a0e1a 0%, #1a0a2e 30%, #4a2a8a 60%, #0d9488 80%, #0a0e1a 100%);
        position: relative;
        overflow: hidden;
        margin-top: -60px;
        color: #fff;
    }

    .profile-hero::before {
        content: '';
        position: absolute;
        top: -30%;
        right: -10%;
        width: 400px;
        height: 400px;
        background: radial-gradient(circle, rgba(13,148,136,0.06) 0%, transparent 70%);
        border-radius: 50%;
        pointer-events: none;
        animation: heroPulse 12s ease-in-out infinite;
    }

    .profile-hero::after {
        content: '';
        position: absolute;
        bottom: -40%;
        left: -15%;
        width: 300px;
        height: 300px;
        background: radial-gradient(circle, rgba(108,58,158,0.04) 0%, transparent 70%);
        border-radius: 50%;
        pointer-events: none;
        animation: heroPulse 15s ease-in-out infinite reverse;
    }

    @keyframes heroPulse {
        0%, 100% {
            transform: scale(1) rotate(0deg);
            opacity: 0.4;
        }
        50% {
            transform: scale(1.05) rotate(3deg);
            opacity: 0.8;
        }
    }

    .profile-hero .breadcrumb-custom {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.75rem;
        color: rgba(255,255,255,0.5);
        margin-bottom: 0.5rem;
    }

    .profile-hero .breadcrumb-custom a {
        color: rgba(255,255,255,0.7);
        text-decoration: none;
        transition: color 0.3s ease;
    }

    .profile-hero .breadcrumb-custom a:hover {
        color: #fcd34d;
    }

    .profile-hero .breadcrumb-custom .separator {
        color: rgba(255,255,255,0.2);
    }

    .profile-avatar-container {
        position: relative;
        width: 100px;
        height: 100px;
        flex-shrink: 0;
    }

    .profile-avatar {
        width: 100px;
        height: 100px;
        border-radius: 50%;
        object-fit: cover;
        border: 4px solid rgba(255,255,255,0.2);
        background: #1a0a2e;
    }

    .avatar-edit-btn {
        position: absolute;
        bottom: 0;
        right: 0;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: #6c3a9e;
        color: #fff;
        border: 2px solid #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        transition: all 0.3s ease;
        font-size: 0.8rem;
    }

    .avatar-edit-btn:hover {
        transform: scale(1.1);
        background: #4e2a75;
        color: #fff;
    }

    .profile-name {
        font-size: 2rem;
        font-weight: 800;
        margin: 0;
        line-height: 1.2;
    }

    .profile-badges {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin: 0.3rem 0;
    }

    .badge-type {
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
        padding: 0.2rem 0.8rem;
        border-radius: 50px;
        font-size: 0.7rem;
        font-weight: 600;
        background: rgba(255,255,255,0.1);
        backdrop-filter: blur(4px);
        color: #fff;
    }

    .badge-type.profession { background: rgba(108,58,158,0.8); }
    .badge-type.location { background: rgba(13,148,136,0.8); }
    .badge-type.verified { background: rgba(16,163,74,0.8); }
    .badge-type.owner { background: rgba(245,158,11,0.8); }

    .profile-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        font-size: 0.8rem;
        color: rgba(255,255,255,0.6);
        margin-top: 0.3rem;
    }

    .profile-meta i {
        color: #fcd34d;
        margin-right: 0.2rem;
    }

    .profile-action-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: flex-end;
    }

    .btn-action {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        padding: 0.5rem 1.2rem;
        border-radius: 50px;
        font-weight: 600;
        font-size: 0.85rem;
        text-decoration: none;
        transition: all 0.3s ease;
        border: none;
        cursor: pointer;
    }

    .btn-action.primary {
        background: linear-gradient(135deg, #6c3a9e, #4e2a75);
        color: #fff;
    }

    .btn-action.primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(108,58,158,0.3);
        color: #fff;
    }

    .btn-action.secondary {
        background: rgba(255,255,255,0.1);
        color: #fff;
        border: 1px solid rgba(255,255,255,0.2);
    }

    .btn-action.secondary:hover {
        background: rgba(255,255,255,0.2);
        color: #fff;
        transform: translateY(-2px);
    }

    .btn-action.success {
        background: #16a34a;
        color: #fff;
    }

    .btn-action.success:hover {
        background: #15803d;
        color: #fff;
        transform: translateY(-2px);
    }

    .btn-action.danger {
        background: #dc2626;
        color: #fff;
    }

    .btn-action.danger:hover {
        background: #b91c1c;
        color: #fff;
        transform: translateY(-2px);
    }

    .btn-action.pending {
        background: #f59e0b;
        color: #fff;
        cursor: default;
    }

    /* Profile Content */
    .profile-content {
        padding: 2rem 0 3rem;
        background: #f8fafc;
    }

    .profile-card {
        background: #fff;
        border-radius: 16px;
        border: 1px solid #eef2f6;
        margin-bottom: 1.5rem;
        overflow: hidden;
    }

    .card-header-custom {
        padding: 1rem 1.5rem;
        border-bottom: 1px solid #eef2f6;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .card-header-custom h5,
    .card-header-custom h6 {
        margin: 0;
        font-weight: 700;
        font-size: 1rem;
        color: #0a1628;
    }

    .card-header-custom h5 i,
    .card-header-custom h6 i {
        color: #6c3a9e;
        margin-right: 0.5rem;
    }

    .btn-link-small {
        font-size: 0.8rem;
        color: #6c3a9e;
        text-decoration: none;
        font-weight: 600;
        transition: all 0.3s ease;
    }

    .btn-link-small:hover {
        color: #4e2a75;
        text-decoration: underline;
    }

    .card-body-custom {
        padding: 1.5rem;
    }

    .about-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }

    .about-item {
        display: flex;
        flex-direction: column;
        gap: 0.1rem;
        padding: 0.5rem;
        background: #f8fafc;
        border-radius: 8px;
    }

    .about-item .label {
        font-size: 0.7rem;
        color: #94a3b8;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .about-item .label i {
        margin-right: 0.3rem;
    }

    .about-item .value {
        font-size: 0.95rem;
        color: #0a1628;
        font-weight: 500;
        word-break: break-word;
    }

    .bio-section {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #eef2f6;
    }

    .bio-section h6 {
        font-weight: 700;
        color: #0a1628;
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }

    .bio-section h6 i {
        color: #6c3a9e;
        margin-right: 0.3rem;
    }

    .bio-section p {
        font-size: 0.95rem;
        line-height: 1.6;
        color: #1e293b;
        margin: 0;
    }

    .portfolio-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .portfolio-item {
        background: #f8fafc;
        border-radius: 12px;
        padding: 1rem;
        border: 1px solid #eef2f6;
        transition: all 0.3s ease;
    }

    .portfolio-item:hover {
        border-color: #6c3a9e;
    }

    .portfolio-placeholder {
        text-align: center;
        padding: 1.5rem;
    }

    .portfolio-placeholder i {
        font-size: 2.5rem;
        color: #6c3a9e;
        opacity: 0.3;
    }

    .portfolio-placeholder p {
        margin: 0.5rem 0;
        color: #64748b;
        font-size: 0.9rem;
    }

    .empty-state-small {
        text-align: center;
        padding: 1.5rem;
    }

    .empty-state-small i {
        font-size: 2.5rem;
        color: #94a3b8;
        opacity: 0.3;
    }

    .empty-state-small p {
        color: #64748b;
        margin: 0.5rem 0;
    }

    .btn-link-primary {
        color: #6c3a9e;
        text-decoration: none;
        font-weight: 600;
        transition: all 0.3s ease;
    }

    .btn-link-primary:hover {
        color: #4e2a75;
        text-decoration: underline;
    }

    .social-links {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 0.5rem;
    }

    .social-link {
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
        padding: 0.4rem 0.8rem;
        border-radius: 8px;
        text-decoration: none;
        font-size: 0.8rem;
        font-weight: 500;
        transition: all 0.3s ease;
        background: #f8fafc;
        color: #1e293b;
        border: 1px solid #eef2f6;
    }

    .social-link:hover {
        transform: translateY(-2px);
    }

    .social-link.facebook:hover { background: #1877f2; color: #fff; border-color: #1877f2; }
    .social-link.twitter:hover { background: #1da1f2; color: #fff; border-color: #1da1f2; }
    .social-link.linkedin:hover { background: #0a66c2; color: #fff; border-color: #0a66c2; }
    .social-link.youtube:hover { background: #ff0000; color: #fff; border-color: #ff0000; }
    .social-link.instagram:hover { background: #e4405f; color: #fff; border-color: #e4405f; }
    .social-link.website:hover { background: #6c3a9e; color: #fff; border-color: #6c3a9e; }

    /* Sidebar */
    .sidebar-card {
        background: #fff;
        border-radius: 16px;
        border: 1px solid #eef2f6;
        margin-bottom: 1.5rem;
        overflow: hidden;
    }

    .stats-grid {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 0.5rem;
    }

    .stat-item {
        text-align: center;
        padding: 0.5rem;
        background: #f8fafc;
        border-radius: 8px;
    }

    .stat-item .stat-number {
        display: block;
        font-size: 1.3rem;
        font-weight: 700;
        color: #0a1628;
    }

    .stat-item .stat-label {
        font-size: 0.6rem;
        color: #94a3b8;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .quick-actions-vertical {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .quick-action-btn {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.6rem 1rem;
        border-radius: 8px;
        text-decoration: none;
        font-size: 0.85rem;
        font-weight: 500;
        transition: all 0.3s ease;
        background: #f8fafc;
        color: #1e293b;
        border: 1px solid #eef2f6;
    }

    .quick-action-btn:hover {
        background: #f5f0fa;
        border-color: #6c3a9e;
        color: #6c3a9e;
        transform: translateX(4px);
    }

    .quick-action-btn i {
        font-size: 1.1rem;
        color: #6c3a9e;
    }

    .quick-action-btn.primary {
        background: linear-gradient(135deg, #6c3a9e, #4e2a75);
        color: #fff;
        border-color: #6c3a9e;
    }

    .quick-action-btn.primary i {
        color: #fff;
    }

    .quick-action-btn.primary:hover {
        transform: translateX(4px);
        box-shadow: 0 4px 12px rgba(108,58,158,0.2);
        color: #fff;
    }

    .quick-action-btn.secondary {
        background: #eef2f6;
        border-color: #e2e8f0;
    }

    .quick-action-btn.trusted {
        background: #dcfce7;
        border-color: #16a34a;
        color: #16a34a;
    }

    .quick-action-btn.trusted i {
        color: #16a34a;
    }

    .trust-items {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .trust-item {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 0.8rem;
        border-radius: 8px;
        font-size: 0.85rem;
        font-weight: 500;
        background: #f8fafc;
    }

    .trust-item.verified {
        background: #dcfce7;
        color: #16a34a;
    }

    .trust-item.unverified {
        background: #fee2e2;
        color: #dc2626;
    }

    .trust-item i {
        font-size: 1.1rem;
    }

    /* Responsive */
    @media (max-width: 992px) {
        .profile-hero {
            padding: 1.5rem 0;
        }

        .profile-name {
            font-size: 1.5rem;
        }

        .profile-avatar-container,
        .profile-avatar {
            width: 80px;
            height: 80px;
        }

        .profile-action-buttons {
            justify-content: flex-start;
        }

        .about-grid {
            grid-template-columns: 1fr;
        }

        .social-links {
            grid-template-columns: 1fr 1fr;
        }

        .stats-grid {
            grid-template-columns: 1fr 1fr 1fr;
        }
    }

    @media (max-width: 768px) {
        .profile-avatar-container,
        .profile-avatar {
            width: 70px;
            height: 70px;
        }

        .profile-name {
            font-size: 1.3rem;
        }

        .profile-badges .badge-type {
            font-size: 0.6rem;
            padding: 0.15rem 0.6rem;
        }

        .profile-meta {
            font-size: 0.7rem;
            gap: 0.5rem;
        }

        .card-body-custom {
            padding: 1rem;
        }

        .social-links {
            grid-template-columns: 1fr 1fr;
        }

        .stats-grid {
            grid-template-columns: 1fr 1fr;
        }

        .btn-action {
            padding: 0.4rem 1rem;
            font-size: 0.8rem;
        }
    }

    @media (max-width: 576px) {
        .profile-hero .d-flex {
            flex-direction: column;
            text-align: center;
        }

        .profile-avatar-container,
        .profile-avatar {
            width: 90px;
            height: 90px;
        }

        .profile-badges {
            justify-content: center;
        }

        .profile-meta {
            justify-content: center;
        }

        .profile-action-buttons {
            justify-content: center;
        }

        .social-links {
            grid-template-columns: 1fr;
        }

        .about-grid {
            grid-template-columns: 1fr;
        }

        .stats-grid {
            grid-template-columns: 1fr 1fr;
        }

        .quick-actions-vertical .quick-action-btn {
            font-size: 0.8rem;
            padding: 0.5rem 0.8rem;
        }
    }