/* Profile Layout Container */
.profile-container {
    max-width: 650px;
    margin: 0 auto;
    padding: 5px;
}

/* Profile Header Card */
.profile-card {
    background-color: #111;
    box-shadow: 0px -6px 10px rgba(125, 100, 0, 0.4);
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #222;
    border-top: 3px solid #f90;
    border-radius: 8px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #222;
    border-radius: 8px;
}

.profile-avatar {
    display: flex;
    background-color: #222;
    height: 80px;
    width: 80px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    color: #f90;
    font-size: 36px;
    border: 2px solid #f90;
    border-radius: 50%;
    object-fit: cover;
}

/* Profile Info */
.profile-info {
    flex-grow: 1;
}

.profile-handle,
.profile-name,
.profile-tagline {
    line-height: 1.3;
    font-size: 14px;
    margin: 5px 0;
}

.profile-handle {
    color: #f90;
}

.profile-name {
    color: #fff;
    font-size: 20px;
    letter-spacing: 0.05em;
}

.profile-tagline {
    color: #888;
}

.profile-bio,
.profile-address,
.profile-email,
.profile-phone,
.profile-creation-date {
    color: #888;
    font-size: 14px;
    padding: 10px 0;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}

.profile-bio table td:first-child,
.profile-address table td:first-child,
.profile-email table td:first-child,
.profile-phone table td:first-child,
.profile-creation-date table td:first-child {
    width: 35px;
    text-align: center;
    padding-right: 10px;
}

.profile-bio {
    width: 100%;
    line-height: 1.5;
    font-size: 16px;
}

#profile-bio-text {
    color: #fff;
}

#profile-bio-icon {
    font-size: 20px;
    color: #f90;
    padding: 0 5px;
}

/* Profile Stats Bar */
.profile-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
    padding: 12px 0;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
}

.stat-item {
    width: 50%;
    text-align: center;
}

.stat-item a {
    text-decoration: none;
}

.stat-value {
    display: block;
    color: #ff9900;
    font-size: 18px;
    font-weight: bold;
}

.stat-label {
    color: #888;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Action Buttons */
.profile-actions {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    justify-content: center;
}

.edit-profile-btn {
    background-color: transparent;
    color: #f90;
    font-size: 20px;
    font-weight: bold;
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.edit-profile-btn:hover {
    background-color: #333;
    color: #fff;
}

/* Tabs & Navigation */
.profile-sub-navigation {
    background-color: #111;
    box-shadow: -3px -3px 10px rgba(125, 100, 0, 0.4);
    margin: 15px auto;
    padding: 2px 0;
    border: 1px solid #f90;
    border-radius: 8px;
}

.profile-tabs {
    display: flex;
    margin: 0 auto;
    border-bottom: 1px solid #333;
}

.profile-tabs:last-child {
    border-bottom: none;
}

.profile-tab {
    background: transparent;
    width: 33.33%;
    text-align: center;
    color: #888;
    font-size: 14px;
    font-weight: bold;
    padding: 15px 5px;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-tab.active,
.profile-tab:hover {
    color: #f90;
    border-bottom-color: #f90;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    background: #1f1f1f;
    border: 1px solid #444;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    padding: 20px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

@media (max-width: 480px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-stats {
        gap: 10px;
    }
}