/* Evennia CSS styles for the game website */

/* Sticky footer styles
-------------------------------------------------- */
html {
    position: relative;
    min-height: 100%;
}

body {
    /* Margin bottom by footer height plus padding against main content*/
    margin-bottom: 92px;
}

.navbar-brand-logo {
    height: 64px;
    width: 64px;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    /* Set the fixed height of the footer here */
    height: 60px;
    line-height: 60px;
    /* Vertically center the text there */
}


/* Fancy play - button */

a.playbutton {
    border-radius: var(--border-radius-lg);
    display: inline-block;
    cursor: pointer;
    font-family: Arial;
    font-size: 19px;
    padding: 14px 37px;
    text-decoration: none;
}

a.playbutton:active {
    position: relative;
    top: 1px;
}

/* ── Site-wide toast notifications ──────────────────────────────────────── */
/* Shared by chargen, org pages, and any future page using showSiteToast(). */

#chargen-toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1050;
    max-width: 380px;
    display: flex;
    flex-direction: column-reverse;
    gap: 6px;
    pointer-events: none;
}

#chargen-toast-container .chargen-toast {
    pointer-events: auto;
    background: var(--color-background);
    border: 1px solid #333;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.82rem;
    color: #ccc;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    animation: toastSlideIn 0.25s ease-out;
    transition: opacity 0.3s, transform 0.3s;
    line-height: 1.4;
}

#chargen-toast-container .chargen-toast.fade-out {
    opacity: 0;
    transform: translateX(30px);
}

@keyframes toastSlideIn {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}

.chargen-toast-icon { flex-shrink: 0; font-size: 0.9rem; margin-top: 1px; }
.chargen-toast-text { flex: 1; }

.chargen-toast[data-category="success"] { border-left: 3px solid #5cb85c; }
.chargen-toast[data-category="success"] .chargen-toast-icon { color: #5cb85c; }
.chargen-toast[data-category="info"]    { border-left: 3px solid #888; }
.chargen-toast[data-category="info"]    .chargen-toast-icon { color: #888; }
.chargen-toast[data-category="danger"]  { border-left: 3px solid #d9534f; background: #2a1a1e; }
.chargen-toast[data-category="danger"]  .chargen-toast-icon { color: #d9534f; }

/* ── Outline / ghost buttons ─────────────────────────────────────────────── */
/* Hollow green, 2px border by default. Fills solid green on hover/active.   */
/* Used for: navigation (Back to X), toggles, widget footers, unpuppet.      */

.btn-outline-primary,
.btn-outline-secondary,
.btn-manage-outline {
    background: transparent;
    border: 2px solid var(--color-secondary);
    color: var(--color-secondary);
    transition: background 0.15s, color 0.15s;
}

.btn-outline-primary:hover, .btn-outline-primary:focus,
.btn-outline-primary.active,
.btn-outline-secondary:hover, .btn-outline-secondary:focus,
.btn-outline-secondary.active,
.btn-manage-outline:hover, .btn-manage-outline:focus {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    color: var(--color-primary-dark);
    text-decoration: none;
}

.btn-outline-primary:disabled,
.btn-outline-secondary:disabled,
.btn-manage-outline:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Micro variant: inline with room/location text (goto/teleport) */
.btn-teleport {
    border: 2px solid var(--color-secondary);
    color: var(--color-secondary);
    background: transparent;
    font-size: 0.75rem;
    padding: 1px 8px;
    line-height: 1.5;
    border-radius: 4px;
    vertical-align: baseline;
    transition: background 0.15s, color 0.15s;
}

.btn-teleport:hover,
.btn-teleport:focus {
    background: var(--color-secondary);
    color: var(--color-primary-dark);
    text-decoration: none;
}

.btn-teleport:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
