/* Profile Layout Design */
.profile-main-container {
    width: 95%;
    max-width: 650px;
    display: flex;
    justify-content: center;
    padding: 20px 0 90px 0;
}

.profile-card {
    width: 100%;
    background-color: #161616;
    border: 1px solid #262626;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.profile-cover {
    height: 140px;
    width: 100%;
    background: linear-gradient(135deg, #0284C7, #38BDF8, #161616);
    background-size: cover;
    background-position: center;
}

.profile-header-section {
    padding: 0 25px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: -45px;
}

.profile-avatar {
    height: 90px;
    width: 90px;
    border-radius: 50%;
    border: 4px solid #161616;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.edit-profile-btn {
    background-color: transparent;
    color: white;
    border: 1px solid #38BDF8;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.edit-profile-btn:hover {
    background-color: #38BDF8;
    color: black;
}

.profile-identity {
    padding: 15px 25px 5px 25px;
}

.name-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.name-row h2 {
    margin: 0;
    font-size: 22px;
    color: white;
}

.verified-check {
    color: #38BDF8;
    font-size: 18px;
}

.handle {
    margin: 4px 0 10px 0;
    font-size: 13px;
    color: #888;
}

.bio {
    margin: 0;
    font-size: 14px;
    color: #cbd5e1;
    line-height: 1.4;
}

.profile-stats {
    display: flex;
    justify-content: space-around;
    padding: 20px 25px;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
    margin-top: 15px;
    background-color: #121212;
}

.stat-box {
    text-align: center;
}

.stat-box h3 {
    margin: 0;
    font-size: 18px;
    color: white;
}

.stat-box p {
    margin: 3px 0 0 0;
    font-size: 12px;
    color: #888;
}

.profile-actions {
    display: flex;
    gap: 12px;
    padding: 20px 25px;
}

.action-btn {
    flex: 1;
    padding: 10px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    transition: transform 0.2s, opacity 0.2s;
}

.primary-btn {
    background: linear-gradient(135deg, #38BDF8, #0284C7);
    color: black;
}

.secondary-btn {
    background-color: #222;
    color: white;
    border: 1px solid #333;
}

.action-btn:hover {
    transform: scale(1.02);
    opacity: 0.95;
}

.profile-gallery-section {
    padding: 0 25px 25px 25px;
}

.profile-gallery-section h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.gallery-item {
    height: 110px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    border: 1px solid #262626;
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.03);
}

.item-1 { background-image: url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTx391uZr3h5iBvzsOnDyN5myVVX7IbyEu8aIOfAbzdRg&s=10'); }
.item-2 { background-image: url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcR1yS_zWU7ARXXFCbMF16JBOQMvtOUI2AOokS8rkRdSnA&s=10'); }
.item-3 { background-image: url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ47ZsBGL_7k7lsgisz-eWaJzPZgEGY7mJcatZyxhbA6A&s=10'); }

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .profile-main-container {
        width: 100%;
        padding: 0 0 80px 0;
    }
    .profile-card {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}