/* ====================================
   📐 PROFILE REDESIGN - Modern Layout
   ==================================== */

/* === 1. Blur Menu Button on Cover === */
.profile-menu-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    /* Changed from right to left */
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.profile-menu-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

/* === 2. Dropdown Menu === */
.profile-dropdown-menu {
    position: absolute;
    top: 60px;
    left: 15px;
    /* Changed from right to left */
    min-width: 220px;
    background: rgba(20, 20, 25, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 101;
    overflow: hidden;
    animation: dropdown-slide 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdown-slide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-menu-item {
    padding: 12px 16px;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.profile-menu-item:hover {
    background: rgba(var(--primary-rgb), 0.2);
    padding-right: 20px;
}

.profile-menu-item i {
    width: 20px;
    opacity: 0.8;
}

/* === 3. Bio Limited (1.5 lines) === */
.profile-bio.limited {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* Max 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 3em;
    /* ~1.5 lines with line-height 1.5 */
    line-height: 1.5;
    margin: 10px 0 15px;
}

/* === 4. Compact Stats Row === */
.profile-stats-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 15px 0;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-compact {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
}

.stat-compact i {
    font-size: 1rem;
    opacity: 0.7;
}

.stat-compact strong {
    font-weight: 700;
    color: var(--primary);
}

.stat-compact small {
    opacity: 0.6;
    font-size: 0.85rem;
}

.stat-compact .rating-value {
    font-weight: 600;
    margin: 0 2px;
}

.stat-compact .rating-count {
    opacity: 0.5;
    font-size: 0.8rem;
}

/* === 5. Skills Bubbles === */
.skills-bubbles {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.skills-bubbles .skill-tag {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(var(--primary-rgb), 0.15);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text);
    transition: all 0.2s;
}

.skills-bubbles .skill-tag:hover {
    background: rgba(var(--primary-rgb), 0.25);
    transform: translateY(-2px);
}

.skills-bubbles .empty-hint {
    font-size: 0.85rem;
    opacity: 0.4;
    font-style: italic;
}

/* === 6. Social Links === */
.social-links {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.social-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.1rem;
    transition: all 0.3s;
    text-decoration: none;
}

.social-link-icon:hover {
    transform: scale(1.15) translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.social-link-icon.instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.social-link-icon.tiktok:hover {
    background: #000000;
    border: 1px solid #00f2ea;
}

.social-link-icon.telegram:hover {
    background: #0088cc;
}

.social-link-icon.phone:hover {
    background: #25D366;
    /* WhatsApp green */
}

.social-link-icon.behance:hover {
    background: #1769ff;
}

.social-link-icon.website:hover {
    background: var(--primary);
}

/* === 7. Mobile Responsive === */
@media (max-width: 768px) {
    .profile-menu-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .profile-stats-row {
        gap: 15px;
        justify-content: center;
    }

    .stat-compact {
        font-size: 0.85rem;
    }

    .skills-bubbles {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .profile-dropdown-menu {
        right: 10px;
        min-width: 200px;
    }
}