/**
 * ACCOUNT SETTINGS PAGE STYLES
 * Clean, modern styling for the Account Settings page
 * Matches the design of Login and Register pages
 */

/* ==========================================================================
   ACCOUNT PAGE WRAPPER
   ========================================================================== */

.um-account-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    background: linear-gradient(180deg, #ffffff, var(--st-ui-bg) 20%);
}

.um-account-wrapper h1.entry-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--st-ui-text-primary);
    margin-bottom: 32px;
    text-align: center;
    letter-spacing: -0.02em;
    margin-top: 0;
}

/* ==========================================================================
   ACCOUNT FORM CONTAINER
   ========================================================================== */

.um-account-wrapper .um-form {
    background: var(--st-ui-surface);
    border: 1px solid var(--st-ui-border);
    border-radius: var(--st-ui-radius-panel);
    box-shadow: var(--st-ui-shadow-card);
    padding: 0;
    overflow: hidden;
}

/* ==========================================================================
   ACCOUNT SIDEBAR NAVIGATION
   ========================================================================== */

.um-account-side {
    background: var(--st-ui-surface-muted);
    border-right: 1px solid var(--st-ui-border);
    padding: 24px;
    min-width: 200px;
}

.um-account-meta {
    background: var(--st-ui-surface);
    border: 1px solid var(--st-ui-border);
    border-radius: var(--st-ui-radius-card);
    padding: 16px;
    margin-bottom: 24px;
    text-align: center;
}

.um-account-meta-img {
    margin-bottom: 12px;
}

.um-account-meta-img img {
    border-radius: 999px;
    border: 3px solid var(--st-ui-border);
    display: block;
    margin: 0 auto;
}

.um-account-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--st-ui-text-primary);
    text-align: center;
    word-break: break-word;
}

.um-account-name a {
    color: var(--st-ui-text-primary);
    text-decoration: none;
}

.um-account-name a:hover {
    color: var(--brand--color-primary);
}

/* Account tabs/menu */
.um-account-side ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.um-account-side li {
    margin-bottom: 8px;
}

.um-account-side li:last-child {
    margin-bottom: 0;
}

.um-account-link {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    background: var(--st-ui-surface);
    border: 1px solid var(--st-ui-border);
    border-radius: var(--st-ui-radius-input);
    color: var(--st-ui-text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.um-account-link:hover {
    background: var(--st-ui-surface);
    border-color: var(--brand--color-primary);
    color: var(--brand--color-primary);
}

.um-account-link.current {
    background: var(--brand--color-primary);
    border-color: var(--brand--color-primary);
    color: white;
}

.um-account-icon {
    display: inline-flex;
    align-items: center;
    margin-right: 10px;
    font-size: 16px;
}

.um-account-title {
    flex: 1;
}

.um-account-arrow {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
}

/* ==========================================================================
   ACCOUNT MAIN CONTENT
   ========================================================================== */

.um-account-main {
    padding: 32px;
    flex: 1;
}

/* Mobile account navigation */
.um-account-nav {
    display: none;
    margin-bottom: 24px;
}

.um-account-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: var(--st-ui-surface-muted);
    border: 1px solid var(--st-ui-border);
    border-radius: var(--st-ui-radius-input);
    color: var(--st-ui-text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.um-account-nav a:hover {
    background: var(--st-ui-surface);
    border-color: var(--brand--color-primary);
    color: var(--brand--color-primary);
}

.um-account-nav a.current {
    background: var(--brand--color-primary);
    border-color: var(--brand--color-primary);
    color: white;
}

.um-account-nav .ico {
    margin-right: 8px;
}

.um-account-nav .arr {
    margin-left: auto;
}

/* Account tabs */
.um-account-tab {
    display: none;
}

.um-account-tab.current {
    display: block;
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================================== */

@media (max-width: 768px) {
    .um-account-wrapper {
        padding: 20px 16px;
    }

    .um-account-wrapper h1.entry-title {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .um-account-wrapper .um-form {
        border-radius: var(--st-ui-radius-card);
    }

    .um-account-side {
        display: none;
        border-right: none;
        border-bottom: 1px solid var(--st-ui-border);
        padding: 16px;
    }

    .um-account-nav {
        display: block;
    }

    .um-account-main {
        padding: 20px;
    }
}

/* ==========================================================================
   FORM ELEMENTS WITHIN ACCOUNT PAGE
   ========================================================================== */

.um-account-tab input[type="text"],
.um-account-tab input[type="email"],
.um-account-tab input[type="password"],
.um-account-tab textarea,
.um-account-tab select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--st-ui-border);
    border-radius: var(--st-ui-radius-input);
    background: var(--st-ui-surface);
    color: var(--st-ui-text-primary);
    font-size: 14px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.um-account-tab input:focus,
.um-account-tab textarea:focus,
.um-account-tab select:focus {
    outline: none;
    border-color: var(--brand--color-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

/* ==========================================================================
   BUTTONS IN ACCOUNT PAGE
   ========================================================================== */

.um-account-tab .um-button,
.um-account-tab button,
.um-account-tab input[type="button"],
.um-account-tab input[type="submit"] {
    padding: 10px 20px;
    background: var(--brand--color-primary);
    color: white;
    border: none;
    border-radius: var(--st-ui-radius-input);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.um-account-tab .um-button:hover,
.um-account-tab button:hover,
.um-account-tab input[type="button"]:hover,
.um-account-tab input[type="submit"]:hover {
    background: var(--brand--color-primary-hover);
}

.um-account-tab .um-button:focus,
.um-account-tab button:focus {
    outline: 2px solid var(--brand--color-primary);
    outline-offset: 2px;
}

.um-account-tab .um-button:disabled,
.um-account-tab button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Secondary buttons */
.um-account-tab .um-button-secondary {
    background: var(--st-ui-border-strong);
}

.um-account-tab .um-button-secondary:hover {
    background: var(--st-ui-border);
}

/* ==========================================================================
   CLEARINGS
   ========================================================================== */

.um-clear {
    clear: both;
}
