/* START disciplines.css */

/* Discipline XP Bar — shown at top of relevant screens */
.discipline-bar-wrap {
    max-width: 600px;
    margin: 0 auto 18px auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.discipline-bar-icon {
    font-size: 26px;
    line-height: 1;
    flex-shrink: 0;
}

.discipline-bar-body {
    flex: 1;
    min-width: 0;
}

.discipline-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 5px;
}

.discipline-bar-name {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.75;
}

.discipline-bar-level {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary);
}

.discipline-bar-track {
    height: 8px;
    border-radius: 4px;
    background: rgba(255,255,255,0.08);
    overflow: hidden;
    position: relative;
}

.discipline-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.4s ease;
}

.discipline-bar-fill.gathering  { background: linear-gradient(90deg, #2e7d32, #66bb6a); }
.discipline-bar-fill.crafting   { background: linear-gradient(90deg, #e65100, #ff9800); }
.discipline-bar-fill.farming    { background: linear-gradient(90deg, #827717, #cddc39); }
.discipline-bar-fill.economy    { background: linear-gradient(90deg, #0d47a1, #42a5f5); }

.discipline-bar-xp {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 4px;
    text-align: right;
}

/* Discipline detail modal table */
.discipline-bar-wrap:hover {
    border-color: var(--primary);
    opacity: 0.92;
}

/* Slide-in level-up card (regular levels) */
.discipline-levelup-card {
    position: fixed;
    bottom: 80px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: 10px;
    padding: 12px 16px;
    z-index: 5500;
    max-width: 260px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.5);
    animation: dlcIn 0.3s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
.discipline-levelup-card.dlc-out {
    animation: dlcOut 0.35s ease forwards;
}
@keyframes dlcIn {
    from { transform: translateX(110%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}
@keyframes dlcOut {
    from { transform: translateX(0);    opacity: 1; }
    to   { transform: translateX(110%); opacity: 0; }
}
.dlc-icon { font-size: 26px; flex-shrink: 0; }
.dlc-body { min-width: 0; }
.dlc-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.dlc-level { font-size: 28px; font-weight: 900; line-height: 1; }
.dlc-rewards { font-size: 11px; color: var(--text-muted); margin-top: 3px; }

/* Level-up discipline toast (center) */
.discipline-levelup-toast {
    border-left: 4px solid var(--primary);
    padding-left: 10px;
}

/* END disciplines.css */
