/* Evolvingbloggers Hub — Frontend Styles */
:root {
    --eb-navy:   #0D1B2A;
    --eb-blue:   #1565C0;
    --eb-teal:   #00838F;
    --eb-gold:   #F9A825;
    --eb-green:  #2E7D32;
    --eb-red:    #C62828;
    --eb-lgray:  #F4F6F9;
    --eb-mgray:  #B0BEC5;
    --eb-dgray:  #37474F;
    --eb-white:  #FFFFFF;
    --eb-radius: 8px;
    --eb-shadow: 0 2px 12px rgba(13,27,42,0.10);
    --eb-font:   'Arial', sans-serif;
}

/* ── Base ───────────────────────────────────────────────────────────────────── */
.eb-form-wrap, .eb-dashboard, .eb-profile-wrap { font-family: var(--eb-font); max-width: 680px; margin: 0 auto; padding: 24px 0; }
.eb-form-header { text-align: center; margin-bottom: 32px; }
.eb-form-header h2 { color: var(--eb-navy); font-size: 1.7rem; margin-bottom: 6px; }
.eb-form-header p { color: var(--eb-dgray); margin: 0; }

/* ── Forms ──────────────────────────────────────────────────────────────────── */
.eb-form .eb-field { margin-bottom: 20px; }
.eb-form .eb-field-hint { display: block; margin-top: 6px; font-size: 12.5px; line-height: 1.45; color: #6B7280; }
.eb-form label { display: block; font-weight: 600; color: var(--eb-navy); margin-bottom: 6px; font-size: 0.92rem; }
.eb-form input[type="text"],
.eb-form input[type="email"],
.eb-form input[type="password"],
.eb-form input[type="url"],
.eb-form input[type="number"],
.eb-form select,
.eb-form textarea { width: 100%; padding: 10px 14px; border: 1.5px solid var(--eb-mgray); border-radius: var(--eb-radius); font-size: 0.97rem; color: var(--eb-navy); background: var(--eb-white); box-sizing: border-box; transition: border-color 0.2s; font-family: var(--eb-font); }
.eb-form input:focus, .eb-form select:focus, .eb-form textarea:focus { border-color: var(--eb-blue); outline: none; box-shadow: 0 0 0 3px rgba(21,101,192,0.12); }
.eb-form textarea { resize: vertical; min-height: 80px; }
.eb-required { color: var(--eb-red); }
.eb-hint { font-size: 0.82rem; color: var(--eb-mgray); margin-top: 4px; display: block; }
.eb-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media(max-width:540px){ .eb-two-col { grid-template-columns: 1fr; } }

/* ── Buttons ────────────────────────────────────────────────────────────────── */
.eb-btn { display: inline-flex; align-items: center; justify-content: center; padding: 11px 24px; border-radius: var(--eb-radius); font-weight: 700; font-size: 0.97rem; cursor: pointer; border: none; text-decoration: none; transition: all 0.18s; font-family: var(--eb-font); gap: 6px; }
.eb-btn-primary { background: var(--eb-blue); color: var(--eb-white); }
.eb-btn-primary:hover { background: #0d47a1; color: var(--eb-white); }
.eb-btn-outline { background: transparent; color: var(--eb-blue); border: 2px solid var(--eb-blue); }
.eb-btn-outline:hover { background: var(--eb-blue); color: var(--eb-white); }
.eb-btn-full { width: 100%; }
.eb-btn-sm { padding: 7px 16px; font-size: 0.87rem; }

/* ── Errors / Messages ──────────────────────────────────────────────────────── */
.eb-errors { background: #FFEBEE; border: 1px solid var(--eb-red); border-radius: var(--eb-radius); padding: 12px 16px; color: var(--eb-red); margin-bottom: 16px; }
.eb-errors ul { margin: 0; padding-left: 18px; }
.eb-message { padding: 12px 16px; border-radius: var(--eb-radius); margin-bottom: 16px; }
.eb-message.eb-success { background: #E8F5E9; color: var(--eb-green); border: 1px solid var(--eb-green); }
.eb-message.eb-error   { background: #FFEBEE; color: var(--eb-red);   border: 1px solid var(--eb-red); }
.eb-notice { background: var(--eb-lgray); padding: 16px; border-radius: var(--eb-radius); }
.eb-muted { color: var(--eb-mgray); font-size: 0.88rem; margin: 0; }

/* ── Step Progress ──────────────────────────────────────────────────────────── */
.eb-step { display: none; }
.eb-step.eb-step-active { display: block; }
.eb-step h3 { color: var(--eb-teal); font-size: 1rem; margin-bottom: 20px; }
.eb-step-nav { display: flex; gap: 12px; margin-top: 24px; }
.eb-step-dots { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.eb-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--eb-mgray); }
.eb-dot.eb-dot-active { background: var(--eb-blue); }

/* ── Rating ─────────────────────────────────────────────────────────────────── */
.eb-rating-row { display: flex; gap: 10px; margin-top: 6px; }
.eb-rating-label input { display: none; }
.eb-rating-btn { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 2px solid var(--eb-mgray); border-radius: var(--eb-radius); cursor: pointer; font-weight: 700; transition: all 0.15s; }
.eb-rating-label input:checked + .eb-rating-btn { background: var(--eb-blue); border-color: var(--eb-blue); color: var(--eb-white); }
.eb-rating-scale { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--eb-mgray); margin-top: 4px; }
.eb-toggle-row { display: flex; gap: 20px; margin-top: 6px; }
.eb-toggle-label { display: flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 500; }

/* ── Dashboard ──────────────────────────────────────────────────────────────── */
.eb-dashboard { max-width: 960px; }
.eb-dashboard-welcome { display: flex; align-items: center; justify-content: space-between; background: var(--eb-navy); color: var(--eb-white); border-radius: var(--eb-radius); padding: 20px 24px; margin-bottom: 28px; }
.eb-welcome-left { display: flex; align-items: center; gap: 16px; }
.eb-welcome-text h2 { margin: 0; font-size: 1.4rem; color: var(--eb-white); }
.eb-welcome-text p  { margin: 4px 0 0; color: var(--eb-mgray); font-size: 0.9rem; }
.eb-welcome-right { display: flex; align-items: center; gap: 12px; }
.eb-dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media(max-width:640px){ .eb-dashboard-grid { grid-template-columns: 1fr; } }
.eb-dashboard-card { background: var(--eb-white); border-radius: var(--eb-radius); box-shadow: var(--eb-shadow); padding: 20px; }
.eb-card-header { font-weight: 700; color: var(--eb-navy); font-size: 0.95rem; margin-bottom: 14px; border-bottom: 2px solid var(--eb-lgray); padding-bottom: 10px; }

/* ── Avatar ─────────────────────────────────────────────────────────────────── */
.eb-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.eb-avatar-lg { width: 80px; height: 80px; }
.eb-avatar-sm { width: 36px; height: 36px; }
.eb-avatar-placeholder { width: 52px; height: 52px; border-radius: 50%; background: var(--eb-blue); color: var(--eb-white); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem; }
.eb-avatar-section { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--eb-lgray); }

/* ── Progress Bar ───────────────────────────────────────────────────────────── */
.eb-progress-bar-wrap { background: var(--eb-lgray); border-radius: 99px; height: 10px; overflow: hidden; margin: 10px 0; }
.eb-progress-bar { height: 100%; background: var(--eb-green); border-radius: 99px; transition: width 0.4s ease; min-width: 2%; }

/* ── Credits ────────────────────────────────────────────────────────────────── */
.eb-credits-display { display: flex; align-items: baseline; gap: 8px; margin: 10px 0; }
.eb-credits-number { font-size: 2.4rem; font-weight: 800; color: var(--eb-teal); line-height: 1; }
.eb-credits-label { color: var(--eb-dgray); font-size: 0.9rem; }

/* ── Badge ──────────────────────────────────────────────────────────────────── */
.eb-badge { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 0.78rem; font-weight: 700; }
.eb-badge-warning { background: #FFF3E0; color: var(--eb-gold); }
.eb-badge-info { background: #E3F2FD; color: var(--eb-blue); }

/* ── Buddy ──────────────────────────────────────────────────────────────────── */
.eb-buddy-info { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.eb-buddy-avatar-wrap { flex-shrink: 0; }

/* ── Micro-win Journal ──────────────────────────────────────────────────────── */
.eb-microwin-form textarea { margin-bottom: 10px; }
.eb-wins-history { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.eb-win-item { display: flex; gap: 8px; font-size: 0.9rem; color: var(--eb-dgray); }
.eb-win-dot { color: var(--eb-green); font-weight: 700; flex-shrink: 0; }

/* ── Quick Links ────────────────────────────────────────────────────────────── */
.eb-quick-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.eb-quick-links a { color: var(--eb-blue); text-decoration: none; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.eb-quick-links a:hover { color: var(--eb-navy); }

/* ── Notifications ──────────────────────────────────────────────────────────── */
.eb-notification-bell { position: relative; font-size: 1.3rem; cursor: pointer; text-decoration: none; }
.eb-notif-count { position: absolute; top: -6px; right: -8px; background: var(--eb-red); color: var(--eb-white); border-radius: 99px; font-size: 0.7rem; padding: 1px 5px; font-weight: 800; }
.eb-notification-item { padding: 12px; border-bottom: 1px solid var(--eb-lgray); }
.eb-notif-unread { background: #E3F2FD; }
.eb-notif-time { font-size: 0.78rem; color: var(--eb-mgray); display: block; margin-top: 4px; }

/* ── Messages ───────────────────────────────────────────────────────────────── */
.eb-message-bubble { max-width: 72%; margin-bottom: 12px; }
.eb-msg-mine { margin-left: auto; text-align: right; }
.eb-msg-mine p { background: var(--eb-blue); color: var(--eb-white); border-radius: 12px 12px 2px 12px; padding: 10px 14px; display: inline-block; }
.eb-msg-theirs p { background: var(--eb-lgray); color: var(--eb-navy); border-radius: 12px 12px 12px 2px; padding: 10px 14px; display: inline-block; }
.eb-msg-time { font-size: 0.75rem; color: var(--eb-mgray); display: block; margin-top: 4px; }

/* ── Empty State ────────────────────────────────────────────────────────────── */
.eb-empty { color: var(--eb-mgray); font-style: italic; text-align: center; padding: 20px; }
.eb-form-footer { text-align: center; margin-top: 16px; color: var(--eb-dgray); font-size: 0.9rem; }
.eb-form-footer a { color: var(--eb-blue); }

/* ── Password Pages ─────────────────────────────────────────────────────────── */
.eb-lost-password-wrap,
.eb-reset-password-wrap { max-width: 440px; }
.eb-password-strength { min-height: 20px; margin-top: 6px; }

/* ── Provider Section (admin) ───────────────────────────────────────────────── */
.eb-provider-section { background: #F4F6F9; border-radius: 8px; padding: 16px 20px; margin-bottom: 16px; border: 1px solid #DCE5FF; }
.eb-provider-section h3 { margin-top: 0; color: #0D1B2A; }
.eb-provider-static { background: #F4F6F9; border-radius: 8px; padding: 16px 20px; margin: 8px 0 24px; border: 1px solid #DCE5FF; }
.eb-provider-static h3 { margin-top: 0; color: #0D1B2A; }

/* ── Split-panel Register/Sign-up Screen ───────────────────────────────────────
   Two-column layout: decorative brand panel on the left (steps overview),
   the actual form on the right. Collapses to a single column on mobile. */
.eb-split-wrap {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    max-width: 1200px;
    margin: 32px auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--eb-shadow);
    min-height: 560px;
}
@media (max-width: 780px) {
    .eb-split-wrap { grid-template-columns: 1fr; min-height: 0; }
}

.eb-split-panel {
    background: linear-gradient(160deg, var(--eb-navy) 0%, var(--eb-blue) 55%, var(--eb-teal) 100%);
    color: var(--eb-white);
    display: flex;
    align-items: center;
    padding: 48px 40px;
    position: relative;
}
@media (max-width: 780px) {
    /* Top-align instead of center on mobile, with a real fixed offset —
       centering math only moves content by a fraction of added padding,
       which is why an earlier attempt still left them touching. This
       block must come AFTER the base .eb-split-panel rule above — same
       selector specificity means source order decides the tie, and a
       media query placed before its base rule gets silently overridden. */
    .eb-split-panel { align-items: flex-start; padding-top: 90px; }
}
.eb-split-panel-inner { max-width: 340px; }
.eb-split-panel-inner h2 { font-size: 2rem; line-height: 1.2; margin: 0 0 14px; color: var(--eb-white); }
.eb-split-panel-inner p { color: rgba(255,255,255,0.82); margin: 0 0 32px; font-size: 0.98rem; }

.eb-split-steps { display: flex; flex-direction: column; gap: 0; position: relative; }
.eb-split-step {
    display: flex; align-items: flex-start; gap: 16px;
    padding: 14px 16px;
    font-size: 0.92rem;
    color: rgba(255,255,255,0.75);
    position: relative;
}
.eb-split-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 33px;
    top: 48px;
    width: 2px;
    height: calc(100% - 22px);
    background: rgba(255,255,255,0.18);
}
.eb-split-step-active { color: var(--eb-white); font-weight: 700; }
.eb-split-step-text { display: flex; flex-direction: column; gap: 2px; padding-top: 4px; }
.eb-split-step-text small { font-weight: 400; font-size: 0.78rem; color: rgba(255,255,255,0.55); }
.eb-split-step-active .eb-split-step-text small { color: rgba(255,255,255,0.75); }
.eb-split-step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
    background: rgba(255,255,255,0.12);
    font-size: 0.88rem; font-weight: 700;
    border: 2px solid rgba(255,255,255,0.2);
}
.eb-split-step-active .eb-split-step-num {
    background: var(--eb-white); color: var(--eb-navy); border-color: var(--eb-white);
    box-shadow: 0 0 0 5px rgba(255,255,255,0.15);
}

.eb-split-form-side { background: var(--eb-white); display: flex; align-items: center; padding: 48px 44px; }
.eb-split-form-inner { width: 100%; max-width: 380px; margin: 0 auto; }
.eb-split-form-inner h2 { color: var(--eb-navy); font-size: 1.5rem; margin: 0 0 4px; }
.eb-split-subtitle { color: var(--eb-mgray); margin: 0 0 24px; font-size: 0.9rem; }

.eb-social-row { display: flex; gap: 12px; margin-bottom: 18px; }
.eb-btn-social {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
    border: 1.5px solid var(--eb-mgray); border-radius: var(--eb-radius);
    padding: 11px 14px; color: var(--eb-navy); font-weight: 600; font-size: 0.92rem;
    text-decoration: none; transition: border-color 0.2s, background 0.2s;
}
.eb-btn-social:hover { border-color: var(--eb-blue); background: var(--eb-lgray); }
.eb-btn-social .fa-google { color: #EA4335; }
.eb-btn-social .fa-facebook { color: #1877F2; }

.eb-or-divider { text-align: center; margin: 18px 0; position: relative; color: var(--eb-mgray); font-size: 0.85rem; }
.eb-or-divider::before, .eb-or-divider::after {
    content: ''; position: absolute; top: 50%; width: 42%; height: 1px; background: var(--eb-lgray);
}
.eb-or-divider::before { left: 0; } .eb-or-divider::after { right: 0; }

.eb-password-wrap { position: relative; }
.eb-password-wrap input { padding-right: 44px; }
.eb-password-toggle {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: var(--eb-mgray); cursor: pointer; padding: 4px;
}
.eb-password-toggle:hover { color: var(--eb-navy); }

/* ── Full-screen auth pages (register/login/forgot/reset password) ──────────── */
.eb-fullscreen-wrap {
    max-width: none !important;
    width: 100vw;
    min-height: 100vh;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    position: relative;
}
@media (max-width: 780px) {
    .eb-fullscreen-wrap { min-height: auto; }
}

/* Belt-and-suspenders: strip common theme content-wrapper padding around
   our fullscreen pages, in case the page's Elementor layout isn't set to
   Canvas (which is still the right primary fix — see the docs — but this
   keeps things edge-to-edge even if that step gets missed on a page). */
body:has(.eb-fullscreen-wrap) .site-content,
body:has(.eb-fullscreen-wrap) .content-area,
body:has(.eb-fullscreen-wrap) main,
body:has(.eb-fullscreen-wrap) #content,
body:has(.eb-fullscreen-wrap) .elementor { padding: 0 !important; margin: 0 !important; max-width: none !important; }

.eb-auth-back-home {
    position: absolute;
    top: 28px;
    left: 40px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    padding: 6px 14px 6px 12px;
    border-radius: 99px;
    background: rgba(255,255,255,0.1);
    transition: background 0.2s, color 0.2s;
}
.eb-auth-back-home i { font-size: 0.8rem; }
.eb-auth-back-home:hover { background: rgba(255,255,255,0.2); color: var(--eb-white); }
@media (max-width: 780px) {
    .eb-auth-back-home { top: 20px; left: 20px; }
}

.eb-auth-tabs { display: flex; gap: 8px; margin-bottom: 22px; border-bottom: 1px solid var(--eb-lgray); }
.eb-auth-tab {
    background: none; border: none; padding: 10px 4px; margin-right: 20px;
    font-size: 1rem; font-weight: 700; color: var(--eb-mgray); cursor: pointer;
    border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.eb-auth-tab-active { color: var(--eb-navy); border-bottom-color: var(--eb-blue); }
