/* Profile Page Styles - Home Theme Alignment */
:root {
    --profile-card-bg: rgba(255, 255, 255, 0.7);
    --profile-border: rgba(0, 0, 0, 0.05);
    --profile-text-main: #111827;
    --profile-text-sub: #6b7280;
    --profile-input-bg: rgba(255, 255, 255, 0.5);
    --profile-input-border: rgba(0, 0, 0, 0.1);
    --profile-input-focus: #2563eb;
}

.profile-section {
    padding: 120px 5% 80px;
    background: #ECF4E5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* Breadcrumbs */
.breadcrumbs {
    width: 100%;
    max-width: 800px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-mist);
}

.breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.breadcrumbs span[aria-current="page"] {
    color: var(--text-main);
    font-weight: 500;
}

.profile-container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.profile-header {
    text-align: center;
    margin-bottom: 3.5rem;
    width: 100%;
}

.avatar-wrapper {
    position: relative;
    width: 130px;
    height: 130px;
    margin: 0 auto 1.5rem;
}

.avatar-circle {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.avatar-circle svg {
    width: 65px;
    height: 65px;
    fill: var(--profile-text-sub);
}

.avatar-edit-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 38px;
    height: 38px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: var(--profile-input-focus);
}

.avatar-edit-btn:hover {
    transform: scale(1.1) rotate(15deg);
    background: var(--profile-input-focus);
    color: #ffffff;
}

.avatar-edit-btn i {
    width: 18px;
    height: 18px;
}

.profile-header h1 {
    font-size: 2.75rem;
    font-weight: 800;
    color: #000000;
    margin-bottom: 0.75rem;
    letter-spacing: -0.03em;
}

.profile-header p {
    font-size: 1.1rem;
    color: var(--text-mist);
    max-width: 500px;
    margin: 0 auto;
}

/* Onboarding flow */
.onboarding {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 2.5rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 18px;
    padding: 1.5rem 1.75rem 1.75rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
    border: 1px solid rgba(148, 163, 184, 0.24);
}

.onboarding-header {
    margin-bottom: 1rem;
}

.onboarding-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    background: #ecfdf3;
    color: #166534;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.onboarding-header h2 {
    margin-top: 0.75rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a;
}

.onboarding-header p {
    margin-top: 0.25rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.onboarding-progress {
    margin: 0.75rem 0 1rem;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}

.onboarding-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    transition: width 0.25s ease-out;
}

.onboarding-steps {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.1rem;
}

.onboarding-step {
    flex: 1;
    min-width: 180px;
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    padding: 0.55rem 0.75rem;
    border-radius: 12px;
    background: #f9fafb;
}

.onboarding-step-index {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #6b7280;
    background: #e5e7eb;
}

.onboarding-step-body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.onboarding-step-title {
    font-size: 0.86rem;
    font-weight: 600;
    color: #111827;
}

.onboarding-step-subtitle {
    font-size: 0.78rem;
    color: #6b7280;
}

.onboarding-step.completed {
    background: #ecfdf3;
}

.onboarding-step.completed .onboarding-step-index {
    background: #22c55e;
    color: #ecfdf3;
}

.onboarding-step.current {
    border: 1px solid rgba(34, 197, 94, 0.55);
    background: #f0fdf4;
}

.onboarding-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 0.35rem;
}

.onboarding-explore-btn {
    padding: 0.8rem 2rem !important;
    font-size: 0.95rem !important;
}

.onboarding-explore-btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.onboarding-hint {
    font-size: 0.78rem;
    color: #6b7280;
}

.profile-card {
    position: relative;
    width: 100%;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1),
        inset 0 0 8px 4px rgba(255, 255, 255, 0.4);
    padding: 3.5rem;
    overflow: hidden;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.8),
            transparent);
    z-index: 1;
}

.profile-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.8),
            transparent,
            rgba(255, 255, 255, 0.3));
    z-index: 1;
}

.form-section {
    margin-bottom: 3rem;
}

.form-section:last-child {
    margin-bottom: 0;
}

.form-section h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #4b5563;
}



.form-control {
    background: var(--profile-input-bg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    color: var(--profile-text-main);
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.form-control::placeholder {
    color: #9ca3af;
}

.form-control:focus {
    outline: none;
    border-color: rgba(37, 99, 235, 0.3);
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
    transform: translateY(-1px);
}

textarea.form-control {
    resize: none;
    min-height: 120px;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
    background-size: 1rem;
}

/* Responsive adjustment */
@media (max-width: 768px) {
    .form-group-row {
        grid-template-columns: 1fr;
    }

    .profile-card {
        padding: 2rem;
    }

    .profile-header h1 {
        font-size: 2.25rem;
    }

    .profile-section {
        padding-top: 100px;
    }
}