/* IE Achievements — Toasts, Badge-Grid, Dashboard-Widget */

:root {
    --ie-ach-primary: #4a4a4a;
    --ie-ach-accent: #c8975c;
    --ie-ach-accent-light: rgba(200, 151, 92, .12);
}

/* ─── Toast ───────────────────────────────────────────────────────── */
#ie-ach-toast-wrap {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 340px;
}

.ie-ach-toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-left: 4px solid var(--ie-ach-accent);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    padding: 14px 14px 14px 16px;
    opacity: 0;
    transform: translateY(12px) scale(.97);
    transition: opacity .25s ease, transform .25s ease;
}

.ie-ach-toast--in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.ie-ach-toast__icon {
    font-size: 26px;
    line-height: 1;
    flex-shrink: 0;
}

.ie-ach-toast__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ie-ach-toast__eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--ie-ach-accent);
}

.ie-ach-toast__title {
    font-size: 14px;
    color: #111827;
}

.ie-ach-toast__desc {
    font-size: 12.5px;
    color: #6b7280;
}

.ie-ach-toast__nudge {
    margin-top: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ie-ach-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--ie-ach-accent);
    width: max-content;
}

.ie-ach-toast__nudge:hover { color: var(--ie-ach-accent); }

.ie-ach-toast__close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 18px;
    line-height: 1;
    color: #9ca3af;
    cursor: pointer;
    padding: 0 0 0 6px;
    flex-shrink: 0;
}

.ie-ach-toast__close:hover { color: #4b5563; }

@media (max-width: 480px) {
    #ie-ach-toast-wrap { left: 12px; right: 12px; max-width: none; }
}

/* ─── Dashboard-Widget ────────────────────────────────────────────── */
.ie-ach-widget {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, #faf6f1 0%, #fff 100%);
    border: 1px solid var(--ie-ach-accent);
    border-radius: 12px;
    padding: 16px 20px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .2s, transform .1s;
}

.ie-ach-widget:hover {
    box-shadow: 0 4px 12px rgba(200, 151, 92, 0.18);
    transform: translateY(-2px);
}

.ie-ach-widget__icon { font-size: 28px; }

.ie-ach-widget__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.ie-ach-widget__text strong { font-size: 15px; color: #111827; }
.ie-ach-widget__text span { font-size: 12.5px; color: #6b7280; }

.ie-ach-widget__bar {
    width: 90px;
    height: 6px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
    flex-shrink: 0;
}

.ie-ach-widget__bar span {
    display: block;
    height: 100%;
    background: var(--ie-ach-accent);
    border-radius: 999px;
}

/* ─── Badge-Uebersicht ([ie_achievements]) ───────────────────────── */
.ie-ach {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 16px 60px;
    font-family: inherit;
}

.ie-ach__summary {
    text-align: center;
    padding: 28px 20px;
    margin-bottom: 28px;
    background: linear-gradient(135deg, #faf6f1 0%, #fff 100%);
    border: 1px solid var(--ie-ach-accent);
    border-radius: 14px;
}

.ie-ach__summary-count {
    font-size: 36px;
    font-weight: 800;
    color: var(--ie-ach-primary);
}

.ie-ach__summary-label {
    font-size: 13px;
    color: #6b7280;
    margin-top: 2px;
}

.ie-ach__cat-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--ie-ach-primary);
    margin: 28px 0 14px;
}

.ie-ach__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 14px;
}

.ie-ach__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 20px 14px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    filter: grayscale(1);
    opacity: .6;
}

.ie-ach__card--unlocked {
    background: #fff;
    border-color: var(--ie-ach-accent);
    box-shadow: 0 2px 8px rgba(200, 151, 92, 0.12);
    filter: none;
    opacity: 1;
}

.ie-ach__card-icon { font-size: 34px; }

.ie-ach__card-title {
    font-size: 14px;
    color: #111827;
}

.ie-ach__card-desc {
    font-size: 12px;
    color: #6b7280;
}

.ie-ach__login-hint {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    background: #fff7ed;
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
    font-size: 14px;
    color: #4b5563;
}

.ie-ach__login-hint a {
    background: var(--ie-ach-primary);
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}
