/* ============================================================
   CLEAN FRONTEND BASE (PLUGIN)
   File: frontend.css
   Purpose: Generic plugin-wide utilities and layout helpers
============================================================ */

/* ------------------------------
   GENERIC UTILITY CLASSES
------------------------------ */

/* Simple clearfix */
.ce-clearfix::after {
    content: "";
    display: block;
    clear: both;
}

/* Text alignment helpers */
.ce-text-center {
    text-align: center;
}

.ce-text-right {
    text-align: right;
}

.ce-text-left {
    text-align: left;
}

/* Spacing utilities */
.ce-mb-10 { margin-bottom: 10px; }
.ce-mb-20 { margin-bottom: 20px; }
.ce-mb-30 { margin-bottom: 30px; }

.ce-pt-10 { padding-top: 10px; }
.ce-pt-20 { padding-top: 20px; }
.ce-pt-30 { padding-top: 30px; }

/* Visibility helpers */
.ce-hidden {
    display: none !important;
}

/* ------------------------------
   GENERIC FRONTEND WRAPPERS
------------------------------ */
.ce-frontend-wrapper {
    width: 100%;
    margin: 0 auto;
}

/* ------------------------------
   GENERIC BUTTON (PLUGIN DEFAULT)
   Note: Entry buttons use entry-buttons.css instead
------------------------------ */
.ce-btn {
    display: inline-block;
    padding: 8px 14px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.95rem;
}

.ce-btn:hover {
    background: #005f8a;
}

/* ------------------------------
   GENERIC FORM ELEMENTS
------------------------------ */
.ce-input,
.ce-select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.ce-input:focus,
.ce-select:focus {
    outline: none;
    border-color: #aa9900;
}

/* ------------------------------
   GENERIC MESSAGE BOXES
------------------------------ */
.ce-message {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.ce-message--info {
    background: #e8f4ff;
    border: 1px solid #bcdfff;
    color: #005a8c;
}

.ce-message--warning {
    background: #fff4e5;
    border: 1px solid #ffd9a8;
    color: #8a4b00;
}

.ce-message--error {
    background: #ffe8e8;
    border: 1px solid #ffbcbc;
    color: #a30000;
}

/* ------------------------------
   GENERIC CONTENT WRAPPERS (NEW)
------------------------------ */

/* Text block wrapper */
.ce-text-content {
    width: 100%;
}

/* Individual text paragraphs */
.ce-text-paragraph {
    margin-bottom: 1.4em;
}

/* Info block wrapper */
.ce-info-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
/* High-contrast slate filter bar for global /search/ */
.ce-filter-bar.ce-filter-bar--search,
body:has(.ce-filter-breadcrumbs a[href*="/search"]) .ce-filter-bar {
    background: #334155;
    border-radius: 8px;
}

.ce-filter-bar.ce-filter-bar--search,
.ce-filter-bar.ce-filter-bar--search *,
body:has(.ce-filter-breadcrumbs a[href*="/search"]) .ce-filter-bar,
body:has(.ce-filter-breadcrumbs a[href*="/search"]) .ce-filter-bar * {
    color: #fff !important;
}

body:has(.ce-filter-breadcrumbs a[href*="/search"]) .ce-filter-bar .ce-clear-filters {
    background: rgba(15, 23, 42, 0.45);
}