/* BeerZpot Portals — Frontend CSS */

.bzp-portal {
    max-width: 900px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Header ── */
.bzp-portal-header {
    background: #1d2327;
    border-radius: 10px;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}
.bzp-portal-title { font-size: 20px; font-weight: 700; color: #f0a500; }
.bzp-portal-sub   { font-size: 13px; color: #888; margin-top: 2px; }

/* ── Period filter ── */
.bzp-period-filter { display: flex; gap: 6px; flex-wrap: wrap; }
.bzp-period-btn {
    padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 600;
    text-decoration: none; background: rgba(255,255,255,.08); color: #aaa;
    transition: all .15s;
}
.bzp-period-btn:hover { background: rgba(255,255,255,.15); color: #fff; }
.bzp-period-btn.active { background: #f0a500; color: #1d2327; }

/* ── Cards ── */
.bzp-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}
.bzp-card {
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    border-left: 4px solid #e0e0e0;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.bzp-card-green { border-left-color: #00a32a; }
.bzp-card-orange { border-left-color: #f0a500; }
.bzp-card-red   { border-left-color: #d63638; }
.bzp-card-icon  { font-size: 24px; margin-bottom: 6px; }
.bzp-card-val   { font-size: 22px; font-weight: 800; color: #1d2327; }
.bzp-card-label { font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: .4px; margin-top: 4px; }

/* ── Section ── */
.bzp-section { background: #fff; border-radius: 8px; padding: 16px 20px; margin-bottom: 16px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.bzp-section-title {
    font-size: 14px; font-weight: 700; color: #1d2327;
    margin-bottom: 14px; padding-bottom: 8px;
    border-bottom: 2px solid #f0a500; display: inline-block;
}
.bzp-empty { color: #888; font-size: 13px; padding: 20px 0; }

/* ── Tables ── */
.bzp-table-wrap { overflow-x: auto; }
.bzp-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.bzp-table th { font-size: 11px; text-transform: uppercase; letter-spacing: .4px; color: #888; padding: 8px 12px; text-align: left; border-bottom: 2px solid #f0f0f0; }
.bzp-table td { padding: 10px 12px; border-bottom: 1px solid #f5f5f5; vertical-align: middle; }
.bzp-table tr:last-child td { border-bottom: none; }
.bzp-table tr:hover td { background: #fafafa; }

/* ── Badges ── */
.bzp-badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 700; }
.bzp-badge-green  { background: #f0fff4; color: #00a32a; }
.bzp-badge-orange { background: #fff8f0; color: #c85a00; }

/* ── Buttons ── */
.bzp-btn {
    display: inline-block; padding: 8px 16px; background: #f0a500; color: #1d2327;
    text-decoration: none; border-radius: 6px; font-size: 13px; font-weight: 700;
    border: none; cursor: pointer; transition: background .2s;
}
.bzp-btn:hover { background: #d4910a; color: #1d2327; }
.bzp-btn-lg { padding: 12px 28px; font-size: 15px; }
.bzp-btn-secondary {
    display: inline-block; padding: 8px 16px; background: transparent;
    color: #aaa; border: 1px solid #3a4149; text-decoration: none;
    border-radius: 6px; font-size: 13px; font-weight: 600;
    transition: all .2s;
}
.bzp-btn-secondary:hover { background: rgba(255,255,255,.08); color: #fff; }

/* ── Info box ── */
.bzp-info-box {
    background: #fff8f0; border: 1px solid #f0a500; border-radius: 8px;
    padding: 14px 18px; font-size: 13px; color: #555; margin-top: 16px;
}

/* ── Error ── */
.bzp-portal-error {
    background: #fff0f0; border: 1px solid #d63638; border-radius: 8px;
    padding: 16px 20px; color: #d63638; font-weight: 600;
}

/* ── Product grid ── */
.bzp-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 16px; }
.bzp-product-card {
    background: #fff; border-radius: 8px; overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.08); transition: transform .2s;
}
.bzp-product-card:hover { transform: translateY(-2px); }
.bzp-product-img img { width: 100%; height: 160px; object-fit: cover; }
.bzp-product-info { padding: 14px; }
.bzp-product-name { font-weight: 700; font-size: 15px; margin-bottom: 8px; color: #1d2327; }
.bzp-product-meta { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 12px; }
.bzp-tag { display: inline-block; padding: 2px 8px; background: #f0f0f0; border-radius: 10px; font-size: 11px; color: #555; }
.bzp-tag-green { background: #f0fff4; color: #00a32a; }
.bzp-tag-red   { background: #fff0f0; color: #d63638; }

/* ── Edit form ── */
.bzp-edit-notice {
    background: #f9f9f9; border: 1px solid #ddd; border-radius: 8px;
    padding: 14px 18px; font-size: 13px; color: #555; margin-bottom: 20px; line-height: 1.8;
}
.bzp-form { background: #fff; border-radius: 8px; padding: 0; }
.bzp-form-section { background: #fff; border-radius: 8px; padding: 20px; margin-bottom: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.bzp-form-section-title { font-size: 14px; font-weight: 700; color: #1d2327; margin: 0 0 6px; padding-bottom: 8px; border-bottom: 2px solid #f0a500; display: inline-block; }
.bzp-form-hint { font-size: 12px; color: #888; margin: 4px 0 12px; line-height: 1.5; }
.bzp-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bzp-form-group { display: flex; flex-direction: column; gap: 6px; }
.bzp-form-group-full { grid-column: 1/-1; }
.bzp-form-group label { font-size: 12px; font-weight: 600; color: #444; }
.bzp-input {
    padding: 10px 12px; border: 1.5px solid #e0e0e0; border-radius: 6px;
    font-size: 14px; width: 100%; box-sizing: border-box; color: #1d2327;
    transition: border-color .2s; resize: vertical;
}
.bzp-input:focus { outline: none; border-color: #f0a500; }

/* ── Sliders ── */
.bzp-slider-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bzp-slider-row { display: flex; flex-direction: column; gap: 4px; }
.bzp-slider-row label { font-size: 12px; color: #555; display: flex; justify-content: space-between; }
.bzp-slider-row label strong { background: #f0a500; color: #fff; padding: 1px 7px; border-radius: 10px; font-size: 11px; }
.bzp-slider-row input[type=range] { width: 100%; accent-color: #f0a500; }

/* ── Form actions ── */
.bzp-form-actions { padding: 20px; display: flex; gap: 16px; align-items: center; }
#bzp-save-status { font-size: 13px; font-weight: 600; }

/* ── Responsive ── */
@media (max-width: 640px) {
    .bzp-cards { grid-template-columns: 1fr 1fr; }
    .bzp-form-grid { grid-template-columns: 1fr; }
    .bzp-slider-grid { grid-template-columns: 1fr; }
    .bzp-portal-header { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
    .bzp-cards { grid-template-columns: 1fr; }
}
