/* /home/siisi/vertex/profile_app/static/css/profile-header.css */

/* =========================================
   profile-header.css – Profile Header page styles
   ========================================= */
   
/* ---------- Profile header (gradient, avatar, badges) ---------- */
.profile-gradient-bg {
    background: var(--primary-gradient);
    position: relative;
    overflow: hidden;
}

.profile-gradient-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.profile-header-card {
    background: var(--primary-gradient);
    color: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.profile-header-card .card-body {
    position: relative;
    z-index: 2;
    padding: 1.5rem;
}

.profile-avatar {
    position: relative;
}

.profile-avatar img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-md);
    border-radius: 50%;
}

.profile-avatar-img {
    transition: var(--transition);
    border: 1px solid #e9ecef;
}

.profile-avatar-img:hover {
    border-color: #43DC80;
}

.verified-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.online-status-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: var(--success-color);
    border: 1px solid white;
    border-radius: 50%;
}

.pulse-dot {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--success-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

.profile-name {
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-bio {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 600px;
}

/* ---------- Profile stats ---------- */
.profile-stats {
    display: flex;
    gap: 2rem;
}

.profile-stats .stat {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.profile-stats .stat:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.15);
}

.profile-stats .stat strong {
    font-size: 1.5rem;
    font-weight: 700;
}

.profile-stats .stat small {
    font-size: 0.8rem;
    opacity: 0.9;
}

.profile-stats-enhanced {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.stat-item {
    flex: 1 0 auto;
    min-width: 65px;
    text-align: center;
}

.profile-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.profile-meta .website-link a {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none;
    transition: var(--transition);
}

.profile-meta .website-link a:hover {
    color: white !important;
    transform: translateY(-1px);
}

/* ---------- Buttons & actions ---------- */
.follow-btn {
    border-radius: 25px;
    padding: 0.5rem 2rem;
    font-weight: 600;
    transition: var(--transition);
    border-width: 2px;
}

.follow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.profile-actions {
    margin-top: 1rem;
}

.profile-actions .btn {
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
}

.profile-actions .btn:hover {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .profile-header-card .card-body {
        padding: 1rem !important;
    }

    .profile-avatar-img {
        width: 80px !important;
        height: 80px !important;
    }

    .online-status-badge {
        bottom: 4px;
        right: 4px;
        width: 16px;
        height: 16px;
    }

    .profile-stats .stat {
        padding: 0.5rem 1rem;
    }

    .profile-stats-enhanced {
        flex-wrap: nowrap !important;
        gap: 0.5rem !important;
        justify-content: space-around;
    }

    .stat-item {
        min-width: 50px;
        flex: 1;
    }

    .stat-item strong {
        font-size: 0.9rem;
    }

    .stat-item small {
        font-size: 0.6rem;
        display: block;
    }

    .profile-name {
        font-size: 1.5rem;
        max-width: 55vw;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: inline-block;
    }

    .profile-meta {
        justify-content: center;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .profile-name {
        max-width: 35vw;
        font-size: 1.25rem;
    }

    .profile-stats-enhanced {
        gap: 0.25rem !important;
    }

    .stat-item strong {
        font-size: 0.8rem;
    }

    .stat-item small {
        font-size: 0.55rem;
    }

    .profile-avatar-img {
        width: 70px !important;
        height: 70px !important;
    }

    .profile-header-card .card-body {
        padding: 0.75rem !important;
    }
}
