/* filename: css/wp-wow-dashboard.css */

.wpwow-dash {
    display: flex;
    min-height: 640px;
    background: #0b1220;
    color: #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);

    /* Fill whatever container it's placed in — the container's own width
       (Elementor "Full Width" content width, set 2026-08-31) controls how
       wide that actually is, not this CSS. */
    width: 100%;
}

/* ---------- Connect-Battle.net prompt ---------- */

.wpwow-dash--connect {
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
}

.wpwow-connect-card {
    max-width: 420px;
    text-align: center;
}

.wpwow-connect-card__icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.wpwow-connect-card h2 {
    font-size: 18px;
    margin: 0 0 8px;
    color: #f8fafc;
}

.wpwow-connect-card p {
    color: #9aa4b2;
    font-size: 14px;
    margin: 0 0 18px;
}

.wpwow-connect-card .button {
    display: inline-flex;
    padding: 10px 20px;
    border-radius: 8px;
    background: linear-gradient(135deg, #22d3ee, #3b82f6);
    color: #0b1220;
    font-weight: 700;
    text-decoration: none;
}

/* ---------- Sidebar ---------- */

.wpwow-dash__sidebar {
    width: 220px;
    flex-shrink: 0;
    background: #0d1526;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    padding: 20px 16px;
}

.wpwow-dash__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    padding: 0 4px;
}

.wpwow-dash__logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #22d3ee, #3b82f6);
    color: #0b1220;
    font-weight: 800;
}

.wpwow-dash__logo-text {
    font-weight: 800;
    letter-spacing: 0.06em;
    font-size: 15px;
}

.wpwow-dash__nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-grow: 1;
}

.wpwow-dash__nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: #9aa4b2;
    text-decoration: none;
    font-size: 14px;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}

.wpwow-dash__nav-item.is-active {
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    font-weight: 600;
}

.wpwow-dash__nav-item.is-disabled {
    opacity: 0.45;
    cursor: default;
}

.wpwow-dash__nav-icon {
    font-size: 16px;
    width: 18px;
    text-align: center;
}

.wpwow-dash__sidebar-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #9aa4b2;
    padding: 10px 4px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 12px;
}

.wpwow-dash__status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    display: inline-block;
}

/* ---------- Main ---------- */

.wpwow-dash__main {
    flex-grow: 1;
    padding: 24px 32px 32px;
    min-width: 0;
}

.wpwow-dash__topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.wpwow-dash__identity {
    display: flex;
    align-items: center;
    gap: 14px;
}

.wpwow-dash__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.wpwow-dash__avatar--placeholder {
    background: linear-gradient(135deg, #334155, #1e293b);
}

.wpwow-dash__char-name {
    font-size: 20px;
    font-weight: 700;
}

.wpwow-dash__char-realm {
    font-size: 13px;
    color: #9aa4b2;
    display: flex;
    align-items: center;
    gap: 6px;
}

.wpwow-dash__char-realm::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 2px;
    display: inline-block;
}

.wpwow-faction--horde::before { background: #ef4444; }
.wpwow-faction--alliance::before { background: #3b82f6; }

.wpwow-dash__topbar-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.wpwow-dash__last-updated {
    font-size: 13px;
    color: #9aa4b2;
}

.wpwow-dash__cooldown-note {
    font-size: 13px;
    color: #f59e0b;
}

.wpwow-dash__refresh-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 8px;
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #38bdf8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.wpwow-dash__refresh-btn:hover {
    background: rgba(56, 189, 248, 0.1);
}

.wpwow-dash__title {
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 4px;
    color: #f8fafc;
}

.wpwow-dash__subtitle {
    color: #9aa4b2;
    margin: 0 0 24px;
    font-size: 14px;
}

/* ---------- Cards ---------- */

.wpwow-card {
    background: #111a2e;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 20px;
}

.wpwow-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.wpwow-card__header h2 {
    font-size: 16px;
    margin: 0;
    color: #f8fafc;
}

.wpwow-card__link {
    font-size: 13px;
    color: #38bdf8;
}

.wpwow-card__link--disabled {
    opacity: 0.4;
}

.wpwow-card__pin {
    opacity: 0.6;
}

/* ---------- Stat cards ---------- */

.wpwow-dash__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.wpwow-stat-card__icon {
    font-size: 22px;
    margin-bottom: 8px;
}

.wpwow-stat-card__label {
    color: #9aa4b2;
    font-size: 13px;
    margin-bottom: 6px;
}

.wpwow-stat-card__value {
    font-size: 28px;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 10px;
}

.wpwow-stat-card__total {
    font-size: 16px;
    font-weight: 500;
    color: #9aa4b2;
}

.wpwow-stat-card__foot {
    font-size: 13px;
    color: #38bdf8;
    margin-top: 8px;
}

/* ---------- Progress bars ---------- */

.wpwow-progress {
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

.wpwow-progress__bar {
    height: 100%;
    background: linear-gradient(90deg, #22d3ee, #3b82f6);
    border-radius: 4px;
}

.wpwow-progress--inline {
    flex-grow: 1;
    margin: 0 12px;
}

/* ---------- Two-column layout ---------- */

.wpwow-dash__columns {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    align-items: start;
}

@media (max-width: 960px) {
    .wpwow-dash { flex-direction: column; }
    .wpwow-dash__sidebar { width: auto; flex-direction: row; overflow-x: auto; }
    .wpwow-dash__nav { flex-direction: row; }
    .wpwow-dash__sidebar-footer { display: none; }
    .wpwow-dash__stats { grid-template-columns: 1fr; }
    .wpwow-dash__columns { grid-template-columns: 1fr; }
}

/* ---------- Collections list ---------- */

.wpwow-collection-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wpwow-collection-list li {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
}

.wpwow-collection-list li:last-child {
    border-bottom: none;
}

.wpwow-collection-list__icon {
    width: 24px;
}

.wpwow-collection-list__label {
    width: 110px;
    color: #e5e7eb;
}

.wpwow-collection-list__pct {
    width: 48px;
    text-align: right;
    color: #9aa4b2;
}

/* ---------- Achievement list ---------- */

.wpwow-achievement-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wpwow-achievement-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
}

.wpwow-achievement-list li:last-child {
    border-bottom: none;
}

.wpwow-achievement-list__name {
    flex-grow: 1;
}

.wpwow-achievement-list__date {
    color: #9aa4b2;
    font-size: 13px;
}

.wpwow-achievement-list__check {
    color: #22c55e;
}

.wpwow-dash__empty {
    color: #9aa4b2;
    font-size: 14px;
}

/* ---------- Goals sidebar ---------- */

.wpwow-goal-list {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wpwow-goal-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.wpwow-goal-list__icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    flex-shrink: 0;
}

.wpwow-goal-list__title {
    font-size: 14px;
    margin-bottom: 4px;
}

.wpwow-goal-list__progress-label {
    font-size: 13px;
    color: #38bdf8;
    margin-bottom: 6px;
}

.wpwow-goal-list__placeholder {
    opacity: 0.85;
}

.wpwow-dash__add-goal-btn {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px dashed rgba(255, 255, 255, 0.25);
    background: transparent;
    color: #9aa4b2;
    font-size: 14px;
    cursor: not-allowed;
}

/* ---------- Footer ---------- */

.wpwow-dash__footer {
    text-align: center;
    color: #64748b;
    font-size: 12px;
    margin-top: 12px;
}
