/* User Navigation Styles */

/* User menu container */
.user-menu {
    position: relative;
    display: flex;
    align-items: center;
}

/* Avatar button (legacy) */
.user-avatar {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Account button in navbar */
.user-account-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    background: none;
    border: none;
    padding: 6px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: rgba(255, 255, 255, 0.85);
    border-radius: 8px;
    margin-right: 8px;
}

.user-account-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.account-label {
    font-size: 14px;
    font-weight: 500;
}

.account-chevron {
    opacity: 0.4;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.user-account-btn:hover .account-chevron {
    opacity: 0.7;
}

.avatar-initials {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.user-account-btn:hover .avatar-initials,
.user-avatar:hover .avatar-initials {
    transform: scale(1.05);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.15);
}

/* Dropdown menu */
.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: rgba(20, 20, 30, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    min-width: 220px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-email {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    max-width: 190px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    cursor: pointer;
    text-align: left;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.dropdown-item svg {
    opacity: 0.7;
}

.dropdown-logout {
    color: #ff6b6b;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 8px;
    padding-top: 12px;
}

.dropdown-logout:hover {
    background: rgba(255, 107, 107, 0.1);
}

/* Profile Page Styles */
.profile-container {
    max-width: 600px;
    margin: 120px auto 60px;
    padding: 0 20px;
}

.profile-card {
    background: rgba(20, 20, 30, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(20px);
}

.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 40px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

.profile-name {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
}

.profile-email {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.profile-verified {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.profile-verified.verified {
    background: rgba(0, 212, 170, 0.15);
    color: #00d4aa;
}

.profile-verified.unverified {
    background: rgba(255, 170, 0, 0.15);
    color: #ffaa00;
}

/* Stats section */
.profile-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #00d4aa;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* Account info */
.profile-info {
    margin-bottom: 30px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.info-value {
    font-size: 14px;
    color: #fff;
}

/* Action buttons */
.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
}

.profile-btn-primary {
    background: linear-gradient(135deg, #00d4aa 0%, #00b894 100%);
    color: #000;
}

.profile-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 212, 170, 0.3);
}

.profile-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.profile-btn-danger {
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.2);
}

.profile-btn-danger:hover {
    background: rgba(255, 107, 107, 0.2);
}

/* Cancel subscription button */
.profile-btn-cancel {
    background: rgba(255, 170, 0, 0.08);
    color: #ffaa00;
    border: 1px solid rgba(255, 170, 0, 0.2);
}

.profile-btn-cancel:hover {
    background: rgba(255, 170, 0, 0.15);
    border-color: rgba(255, 170, 0, 0.35);
}

.profile-btn-cancel svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Subscription badge */
.subscription-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.subscription-badge.active {
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.2), rgba(0, 184, 148, 0.2));
    color: #00d4aa;
    border: 1px solid rgba(0, 212, 170, 0.3);
}

.subscription-badge.inactive {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.5);
}

/* Loading state */
.profile-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #00d4aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .profile-card {
        padding: 25px;
    }

    .profile-stats {
        grid-template-columns: 1fr;
    }

    .profile-avatar {
        width: 80px;
        height: 80px;
        font-size: 28px;
    }
}