/* Profile Cover Banner */
.profile-cover {
    position: relative;
    height: 250px;
    background-size: cover;
    background-position: center;
    border-radius: 0.5rem 0.5rem 0 0;
    overflow: hidden;
}

.profile-cover-default {
    background: linear-gradient(135deg, #1a5276 0%, #2980b9 50%, #3498db 100%);
}

.profile-cover-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
}

.profile-avatar-overlay {
    position: absolute;
    bottom: -40px;
    right: 30px;
    z-index: 2;
}

.profile-avatar-overlay img,
.profile-avatar-overlay .avatar-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid #fff;
    object-fit: cover;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.profile-avatar-overlay .avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #2980b9;
}

.avatar-edit-btn {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: 2px solid #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: background 0.2s;
}
.avatar-edit-btn:hover {
    background: rgba(0,0,0,0.8);
}

.cover-edit-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 3;
}

.cover-edit-btn:hover {
    background: rgba(0,0,0,0.7);
}

.avatar-edit-btn {
    position: absolute;
    bottom: 0;
    left: 0;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
    z-index: 3;
}

.profile-info-below-cover {
    padding-top: 50px;
}

/* Featured Carousel */
.featured-carousel-container {
    position: relative;
}

.featured-carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding: 8px 0;
}

.featured-carousel::-webkit-scrollbar {
    height: 6px;
}

.featured-carousel::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.featured-carousel-item {
    flex: 0 0 280px;
    scroll-snap-align: start;
    position: relative;
}

.featured-carousel-item .card {
    height: 100%;
    border: 2px solid #f0c040;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.featured-carousel-item .card-img-top {
    height: 160px;
    object-fit: cover;
}

.featured-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 1;
}

.featured-unpin-btn {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    background: rgba(220,53,69,0.85);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
}

.featured-edit-mode .featured-unpin-btn {
    display: flex;
}

.featured-edit-mode .featured-carousel-item {
    cursor: grab;
}

.featured-edit-mode .featured-carousel-item:active {
    cursor: grabbing;
}

.featured-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.featured-carousel-arrow:hover {
    background: #fff;
}

.featured-carousel-arrow.arrow-right {
    right: -18px;
}

.featured-carousel-arrow.arrow-left {
    left: -18px;
}

/* Developer Card (directory + homepage) */
.developer-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.developer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.developer-card .card-img-top {
    height: 120px;
    object-fit: cover;
}

.developer-card-cover-default {
    height: 120px;
    background: linear-gradient(135deg, #1a5276 0%, #2980b9 50%, #3498db 100%);
}

.developer-card .developer-logo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid #fff;
    object-fit: cover;
    margin-top: -32px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.developer-card .developer-logo-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid #fff;
    margin-top: -32px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #2980b9;
}

/* Team Member Card */
.team-member-card {
    text-align: center;
    padding: 1rem;
    transition: transform 0.2s;
}

.team-member-card:hover {
    transform: translateY(-2px);
}

.team-member-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.5rem;
}

.team-member-card .member-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    font-size: 2rem;
    color: #6c757d;
}

/* Pin button on property tables */
.pin-featured-btn {
    border: none;
    background: transparent;
    color: #ccc;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px;
    transition: color 0.2s;
}

.pin-featured-btn:hover {
    color: #f0c040;
}

.pin-featured-btn.active {
    color: #f0c040;
}

/* Responsive */
@media (max-width: 768px) {
    .profile-cover {
        height: 150px;
    }

    .profile-avatar-overlay {
        right: 15px;
        bottom: -30px;
    }

    .profile-avatar-overlay img,
    .profile-avatar-overlay .avatar-placeholder {
        width: 80px;
        height: 80px;
    }

    .profile-info-below-cover {
        padding-top: 40px;
    }

    .featured-carousel-item {
        flex: 0 0 220px;
    }

    .featured-carousel-item .card-img-top {
        height: 130px;
    }

    .featured-carousel-arrow {
        display: none;
    }
}
