/* User Accounts Addon Styles */

/* =============================================
   Backpage Theme — Card Layout
   Uses the backpage color palette:
   Primary: #506fa3, Hover: #DF971E, BG: #e3e9f2, Border: #afbed8
   ============================================= */
.bp-ua-container {
    max-width: 480px;
    margin: 10px auto;
    padding: 0 15px;
}

.bp-ua-container-wide {
    max-width: 750px;
}

.bp-ua-card {
    background: #fff;
    border: 1px solid #afbed8;
    border-radius: 5px;
    margin-bottom: 15px;
    overflow: hidden;
}

.bp-ua-card-header {
    background-color: #506fa3;
    color: #fff;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bp-ua-card-header h2 {
    margin: 0;
    color: #fff;
    font-size: 12pt;
}

.bp-ua-card-header h2 i {
    margin-right: 6px;
}

.bp-ua-card-body {
    padding: 15px;
}

.bp-ua-card-body label {
    font-weight: bold;
    font-size: 11px;
    color: #506fa3;
}

.bp-ua-card-body .form-group {
    margin-bottom: 12px;
}

/* =============================================
   Backpage — Links (centered footer-style)
   ============================================= */
.bp-ua-links {
    margin-top: 15px;
    text-align: center;
    font-size: 12px;
}

/* =============================================
   Backpage — Dashboard Stats
   ============================================= */
.bp-ua-stats {
    padding: 12px 0;
    margin-bottom: 10px;
    border-top: 1px solid #e3e9f2;
    border-bottom: 1px solid #e3e9f2;
}

.bp-ua-stat-number {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #506fa3;
}

.bp-ua-stat-label {
    display: block;
    font-size: 10px;
    color: #888;
    text-transform: uppercase;
}

/* =============================================
   Backpage — Dashboard Navigation Grid
   ============================================= */
.bp-ua-nav-grid {
    margin-bottom: 10px;
}

.bp-ua-nav-item {
    display: block;
    padding: 12px 10px;
    margin-bottom: 8px;
    border: 1px solid #afbed8;
    border-radius: 5px;
    background: #e3e9f2;
    color: #506fa3;
    font-weight: bold;
    font-size: 12px;
    text-decoration: none;
    text-align: center;
}

.bp-ua-nav-item:hover {
    background: #d4dce8;
    color: #334a73;
    text-decoration: none;
}

.bp-ua-nav-item i {
    display: block;
    font-size: 20px;
    margin-bottom: 4px;
    color: #506fa3;
}

/* =============================================
   Backpage — Owner Badge (showad page)
   ============================================= */
.ua-owner-badge {
    display: inline-block;
    padding: 5px 12px;
    background: #e3e9f2;
    border: 1px solid #afbed8;
    border-radius: 5px;
    color: #506fa3;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 10px;
}

.ua-owner-badge i {
    margin-right: 4px;
}

.ua-owner-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e3e9f2;
}

/* =============================================
   Backpage — Responsive
   ============================================= */
@media (max-width: 480px) {
    .bp-ua-container {
        padding: 0 10px;
    }

    .bp-ua-card-body {
        padding: 12px;
    }
}


/* =============================================================================
   SNet-Phoenix Theme
   Design: Flat, minimal. Bitter serif headings, Open Sans body.
   Palette: #222 primary, #eee/#f5f5f5 backgrounds, #aaa/#888 secondary text,
            crimson hover accent. No shadows, no rounded corners.
   ============================================================================= */

/* --- Page Container --- */
.px-ua-page {
    padding: 20px 0;
}

.px-ua-page h1 {
    font-family: Bitter, Cambria, Georgia, serif;
    font-size: 1.6em;
    font-weight: bold;
    margin: 0 0 5px;
}

.px-ua-page h3 {
    font-family: Bitter, Cambria, Georgia, serif;
    font-size: 1.2em;
    font-weight: bold;
    margin: 0 0 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

/* Narrow container for auth forms */
.px-ua-narrow {
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Medium container for profile */
.px-ua-medium {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Dialog Box (login, register, forgot-pw, etc.) --- */
.px-ua-dialog {
    background: #eee;
    padding: 40px 40px 30px;
    margin: 20px 0;
}

.px-ua-dialog h1 {
    margin-bottom: 20px;
}

.px-ua-dialog .form-group {
    margin-bottom: 18px;
}

.px-ua-dialog label {
    font-size: 0.9em;
    color: #888;
    font-weight: bold;
    margin-bottom: 4px;
}

.px-ua-dialog .form-control {
    border-radius: 0;
    box-shadow: none;
    border: 1px solid #ddd;
}

.px-ua-dialog .form-control:focus {
    border-color: #222;
    box-shadow: none;
}

.px-ua-dialog .checkbox label {
    font-weight: normal;
    color: #555;
}

.px-ua-dialog .btn-primary {
    margin-top: 10px;
}

/* --- Links footer below forms --- */
.px-ua-links {
    margin-top: 25px;
    text-align: center;
    font-size: 0.9em;
    color: #aaa;
}

.px-ua-links a {
    color: #222;
}

.px-ua-links a:hover {
    color: crimson;
}

.px-ua-links .sep {
    margin: 0 5px;
    color: #ccc;
}

/* --- Dashboard Stats --- */
.px-ua-stats {
    background: #f5f5f5;
    padding: 25px 0;
    margin: 20px 0;
}

.px-ua-stat-num {
    display: block;
    font-family: Bitter, Cambria, Georgia, serif;
    font-size: 2em;
    font-weight: bold;
    color: #222;
    line-height: 1;
}

.px-ua-stat-label {
    display: block;
    font-size: 0.8em;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

/* --- Dashboard Nav Grid --- */
.px-ua-nav-grid {
    margin: 20px -15px 10px;
}

.px-ua-nav-item {
    display: block;
    padding: 18px 10px;
    margin-bottom: 10px;
    background: #222;
    color: #fff;
    font-family: Bitter, Cambria, Georgia, serif;
    font-weight: bold;
    font-size: 0.95em;
    text-align: center;
    text-decoration: none;
}

.px-ua-nav-item:hover,
.px-ua-nav-item:focus {
    background: black;
    color: #fff;
    text-decoration: none;
}

.px-ua-nav-item i {
    display: block;
    font-size: 1.5em;
    margin-bottom: 6px;
}

/* --- Sections (profile, recent ads) --- */
.px-ua-section {
    padding: 20px 0;
    border-top: 1px solid #eee;
}

.px-ua-section .form-group {
    margin-bottom: 18px;
}

.px-ua-section label {
    font-size: 0.9em;
    color: #888;
    font-weight: bold;
    margin-bottom: 4px;
}

.px-ua-section .form-control {
    border-radius: 0;
    box-shadow: none;
    border: 1px solid #ddd;
}

.px-ua-section .form-control:focus {
    border-color: #222;
    box-shadow: none;
}

.px-ua-section .help-block {
    font-size: 0.85em;
    color: #aaa;
}

/* --- List items (recent ads) --- */
.px-ua-list-item {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.px-ua-list-item a {
    font-family: Bitter, Cambria, Georgia, serif;
    font-weight: bold;
    color: #222;
}

.px-ua-list-item a:hover {
    color: crimson;
}

.px-ua-list-item .subtitle {
    display: block;
    font-size: 0.85em;
    color: #aaa;
    margin-top: 2px;
}

/* --- Badge --- */
.px-ua-badge {
    display: inline-block;
    font-size: 0.7em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 2px 8px;
    vertical-align: middle;
    margin-left: 8px;
}

.px-ua-badge-warn {
    background: #222;
    color: #fff;
}

/* --- Header bar (My Ads page) --- */
.px-ua-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.px-ua-header-bar h1 {
    margin: 0;
}

/* --- Empty state --- */
.px-ua-empty {
    text-align: center;
    padding: 40px 0;
    color: #aaa;
}

.px-ua-empty p {
    font-size: 1.1em;
    margin-bottom: 20px;
}

/* --- Ad rows (My Ads list) --- */
.px-ua-ad-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.px-ua-ad-info {
    flex: 1;
    min-width: 0;
}

.px-ua-ad-title {
    font-family: Bitter, Cambria, Georgia, serif;
    font-weight: bold;
    color: #222;
}

.px-ua-ad-title:hover {
    color: crimson;
}

.px-ua-ad-info .subtitle {
    display: block;
    font-size: 0.85em;
    color: #aaa;
    margin-top: 2px;
}

.px-ua-ad-actions {
    flex-shrink: 0;
    margin-left: 15px;
    white-space: nowrap;
}

.px-ua-ad-actions .btn {
    margin-left: 2px;
}

/* --- Status labels --- */
.px-ua-status {
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.85em;
}

.px-ua-status-ok { color: darkgreen; }
.px-ua-status-warn { color: #b8860b; }
.px-ua-status-err { color: crimson; }

/* --- Owner badge (showad) --- */
.px-ua-owner-badge {
    display: inline-block;
    font-size: 0.8em;
    font-weight: bold;
    color: #222;
    background: #eee;
    padding: 3px 10px;
    margin-bottom: 10px;
}

.px-ua-owner-badge i {
    margin-right: 3px;
}

/* --- Owner actions (showad) --- */
.px-ua-owner-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.px-ua-owner-actions .btn {
    margin-right: 5px;
}

/* --- Back link --- */
.px-ua-back-link {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.px-ua-back-link a {
    color: #888;
    font-size: 0.9em;
}

.px-ua-back-link a:hover {
    color: crimson;
}

/* --- Phoenix Responsive --- */
@media (max-width: 480px) {
    .px-ua-dialog {
        padding: 25px 20px 20px;
    }

    .px-ua-nav-item {
        padding: 14px 10px;
        font-size: 0.85em;
    }

    .px-ua-stat-num {
        font-size: 1.5em;
    }

    .px-ua-ad-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .px-ua-ad-actions {
        margin-left: 0;
        margin-top: 8px;
    }

    .px-ua-header-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
