/* Profile Page Specific Styles */
:root {
    --profile-bg: #f7fbff;
    --profile-card: #ffffff;
    --profile-ink: #1f2a37;
    --profile-muted: #5f6b7a;
    --profile-line: #e7eef7;
    --profile-accent: #0f83e2;
    --profile-accent-soft: #d8ecff;
}

.profile-page {
    background: radial-gradient(1100px 520px at 85% -10%, #eaf4ff 0%, transparent 55%),
                radial-gradient(900px 460px at 5% -5%, #e8f7ff 0%, transparent 50%),
                var(--profile-bg);
    min-height: 100vh;
}

.profile-shell {
    max-width: 1100px;
    margin: 0 auto;
    padding: clamp(24px, 4vw, 56px);
    padding-top: calc(clamp(24px, 4vw, 56px) + 64px);
}

.profile-hero {
    background: linear-gradient(135deg, #0f83e2 0%, #4aa3ff 70%, #7fd0ff 100%);
    color: #fff;
    border-radius: 28px;
    padding: clamp(28px, 5vw, 44px);
    box-shadow: 0 18px 40px rgba(15, 131, 226, .25);
    position: relative;
    overflow: hidden;
    margin-bottom: clamp(20px, 3vw, 28px);
}

.profile-hero--compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.profile-edit-toggle {
    border: none;
    background: rgba(255,255,255,.2);
    width: 44px;
    height: 44px;
    border-radius: 14px;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.profile-edit-toggle:hover {
    background: rgba(255,255,255,.28);
}

.profile-edit-icon {
    width: 18px;
    height: 18px;
    background: #fff;
    -webkit-mask: no-repeat center/100% 100% url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23000' d='M3 17.25V21h3.75l11-11.03-3.75-3.72L3 17.25zm17.71-10.04c.39-.39.39-1.02 0-1.41L18.2 3.29c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.72 1.99-1.63z'/></svg>");
    mask: no-repeat center/100% 100% url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23000' d='M3 17.25V21h3.75l11-11.03-3.75-3.72L3 17.25zm17.71-10.04c.39-.39.39-1.02 0-1.41L18.2 3.29c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.72 1.99-1.63z'/></svg>");
}

.profile-name-text {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--profile-ink);
}

.profile-email-pill {
    width: 100%;
    padding: 0;
    border-radius: 0;
    border: 0;
    background: transparent;
    color: #4b5563;
    font-weight: 600;
    text-align: center;
    box-shadow: none;
}

.info-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.info-row {
    display: grid;
    grid-template-columns: 160px 1fr;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #eef2f7;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 0.9rem;
    color: var(--profile-muted);
}

.info-value {
    font-weight: 600;
    color: var(--profile-ink);
}

@media (max-width: 720px) {
    .profile-hero--compact {
        flex-direction: column;
        align-items: flex-start;
    }

    .info-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}
.profile-hero::after {
    content: "";
    position: absolute;
    right: -70px;
    top: -70px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
    pointer-events: none;
}

.profile-hero > * {
    position: relative;
    z-index: 1;
}

.profile-eyebrow {
    font-size: 13px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: .8;
    margin-bottom: 6px;
}

.profile-hero h1 {
    margin: 0 0 8px 0;
    font-size: clamp(22px, 3vw, 32px);
}

.profile-subtitle {
    margin: 0;
    opacity: .9;
}

.profile-grid {
    display: grid;
    grid-template-columns: minmax(280px, 360px) 1fr;
    gap: clamp(16px, 3vw, 28px);
}

.profile-card,
.profile-form-card {
    background: var(--profile-card);
    border: 1px solid var(--profile-line);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(16, 24, 40, .08);
    padding: clamp(18px, 3vw, 24px);
}

.profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}

.profile-identity {
    width: 100%;
    display: grid;
    gap: 8px;
    justify-items: center;
}

.profile-avatar {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: linear-gradient(160deg, #f0f7ff, #d7eaff);
    display: grid;
    place-items: center;
    font-size: 2.4rem;
    font-weight: 700;
    color: #0f83e2;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 8px 18px rgba(15, 131, 226, .18);
}

.profile-name-input {
    width: 100%;
    text-align: center;
    border: none;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--profile-ink);
    background: transparent;
    padding: 6px 8px;
    border-bottom: 1px solid transparent;
}

.profile-name-input:focus {
    outline: none;
    border-bottom-color: var(--profile-accent);
}

.profile-email {
    color: var(--profile-accent);
    font-weight: 600;
}

.profile-email-row {
    display: grid;
    gap: 8px;
    width: 100%;
    margin-top: 4px;
}

.profile-email-row label {
    font-size: 0.75rem;
    color: var(--profile-muted);
    letter-spacing: .08em;
    text-transform: uppercase;
}

.profile-date-row {
    display: grid;
    gap: 8px;
    width: 100%;
    margin-top: 4px;
}

.profile-date-row label {
    font-size: 0.75rem;
    color: var(--profile-muted);
    letter-spacing: .08em;
    text-transform: uppercase;
}

.profile-date-input {
    width: 100%;
    padding: 6px 0;
    border: none;
    border-bottom: 1px solid #e3ecf7;
    border-radius: 0;
    background: transparent;
    color: #4b5563;
    font-weight: 600;
    text-align: center;
}

.profile-date-input:focus {
    outline: none;
    border-bottom-color: var(--profile-accent);
}

.profile-email-input {
    width: 100%;
    padding: 0;
    border-radius: 0;
    border: 0;
    background: transparent;
    color: #4b5563;
    font-weight: 600;
    text-align: center;
    box-shadow: none;
}

.profile-meta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #5f6b7a;
    font-size: 0.9rem;
}

.profile-actions {
    width: 100%;
    margin-top: 0;
    display: flex;
    justify-content: center;
}

.btn-outline {
    border: 1px solid #cfe0f3;
    background: #ffffff;
    color: #3c4c5c;
    padding: 8px 20px;
    border-radius: 9999px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(15, 131, 226, .06);
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.btn-outline:hover {
    background: #f6faff;
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(15, 131, 226, .10);
}

.profile-form-card .form-title h2 {
    margin: 0 0 6px 0;
    font-size: 1.2rem;
}

.profile-form-card .form-title p {
    margin: 0;
    color: var(--profile-muted);
    font-size: 0.95rem;
}

.form-field {
    margin-top: 18px;
    display: grid;
    gap: 8px;
}

.form-field label {
    font-weight: 600;
    color: var(--profile-ink);
}

.form-field input[type="text"],
.form-field input[type="date"],
.form-field input[type="password"],
.form-field input[type="file"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d9e4f2;
    border-radius: 12px;
    font-size: 0.98rem;
    background: #fff;
}

.form-field input[type="text"]:focus,
.form-field input[type="date"]:focus,
.form-field input[type="password"]:focus {
    outline: none;
    border-color: var(--profile-accent);
    box-shadow: 0 0 0 3px rgba(15, 131, 226, .12);
}

.avatar-preview {
    margin-top: 12px;
    display: grid;
    gap: 10px;
    justify-items: center;
}

.avatar-preview img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--profile-accent);
    background: #f1f5fb;
}

.btn-danger {
    background: #e5484d;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 10px;
    cursor: pointer;
}

.form-actions {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--profile-accent);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(15, 131, 226, .2);
}

.btn-primary:hover {
    background: #0c72c7;
}

.profile-status {
    color: var(--profile-accent);
    font-weight: 600;
}

@media (max-width: 960px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
}

.profile-edit .profile-meta {
    display: none;
}
