/* ═══════════════════════════════════════════════════════════════
   Foundation replacements — minimal subset used by Limify
   ═══════════════════════════════════════════════════════════════ */

/* ── Buttons ──────────────────────────────────────────────── */
.button, button.button {
    display: inline-block;
    padding: 0.55rem 1rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    box-sizing: border-box;
    white-space: nowrap;
    vertical-align: middle;
}
.button:hover, button.button:hover {
    background: var(--bg-hover);
    border-color: var(--text-muted);
}
.button.primary {
    background: var(--accent-dark);
    color: #fff;
    border-color: var(--accent-dark);
}
.button.primary:hover {
    background: var(--accent-hover);
}
.button.secondary {
    background: var(--bg-hover);
    color: var(--text-primary);
}
.button.secondary:hover {
    background: var(--border);
}
.button.success {
    background: var(--color-success);
    color: #fff;
    border-color: var(--color-success);
}
.button.small {
    padding: 0.35rem 0.7rem;
    font-size: 0.78rem;
}
.button-group {
    display: inline-flex;
    gap: 0;
}
.button-group .button {
    border-radius: 0;
}
.button-group .button:first-child {
    border-radius: 4px 0 0 4px;
}
.button-group .button:last-child {
    border-radius: 0 4px 4px 0;
}
.button-group.no-gaps .button {
    border-right-width: 0;
}
.button-group.no-gaps .button:last-child {
    border-right-width: 1px;
}
.button-group.tiny .button {
    padding: 0.25rem 0.5rem;
    font-size: 0.72rem;
}

/* ── Callout ──────────────────────────────────────────────── */
.callout {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--bg-elevated);
    color: var(--text-primary);
    margin-bottom: 1rem;
}
.callout.success {
    border-color: var(--color-success);
    background: rgba(78, 201, 176, 0.1);
    color: var(--color-success);
}
.callout.error {
    border-color: var(--color-error);
    background: rgba(244, 135, 113, 0.1);
    color: var(--color-error);
}
.callout.warning {
    border-color: var(--color-warning);
    background: rgba(215, 186, 125, 0.1);
    color: var(--color-warning);
}

/* ── Utility classes ──────────────────────────────────────── */
.m-0 { margin: 0 !important; }
.mt-12 { margin-top: 12px; }
.mt-20 { margin-top: 20px; }
.p-12 { padding: 12px; }
.p-10 { padding: 10px; }
.mb-4 { margin-bottom: 4px; }
.mb-8 { margin-bottom: 8px; }
.mb-10 { margin-bottom: 10px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.ml-8 { margin-left: 8px; }
.text-inherit { color: inherit; }
.no-underline { text-decoration: none; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.nowrap { white-space: nowrap; }
.display-none { display: none !important; }
.hidden { display: none !important; }
.search-input {
    width: 100%;
    padding: 8px 12px;
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.85rem;
    box-sizing: border-box;
}
.search-input::placeholder {
    color: var(--text-muted, #858585);
}
.search-input:focus {
    border-color: var(--accent);
    outline: none;
}

/* ── Forms ────────────────────────────────────────────────── */
.form-control {
    width: 100%;
    padding: 8px 12px;
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.85rem;
    box-sizing: border-box;
}
.form-control:focus {
    border-color: var(--accent);
    outline: none;
}

/* ── Carousel / Orbit (from GenerateCarouselHtml) ─────────── */
.orbit {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}
.orbit-container {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 400px;
}
.orbit-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
}
.orbit-slide.is-active {
    opacity: 1;
    z-index: 1;
}
.orbit-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.orbit-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 12px 16px;
}
.orbit-caption h3 {
    margin: 0 0 4px;
    font-size: 1.1rem;
}
.orbit-caption p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.85;
}
.orbit-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 2;
    padding: 0 8px;
    pointer-events: none;
}
.orbit-controls button {
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s;
}
.orbit-controls button:hover {
    background: rgba(0, 0, 0, 0.8);
}
.orbit-bullets {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}
.orbit-bullets button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    cursor: pointer;
    padding: 0;
}
.orbit-bullets button.is-active {
    background: #fff;
}
