/* GLAM Scooters – Frontend v2.0 */

/* ── Wrapper ────────────────────────────────── */
.glam-scooters-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 0;
    font-family: 'Barlow', 'Segoe UI', sans-serif;
}

/* ── Filter Bar ──────────────────────────────── */
.glam-filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.glam-filter-btn {
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    border: 1.5px solid rgba(0,153,187,0.3);
    background: transparent;
    color: #64748b;
    transition: all 0.2s ease;
    outline: none;
}

.glam-filter-btn:hover {
    border-color: #0099bb;
    color: #0099bb;
    background: rgba(0,153,187,0.05);
}

.glam-filter-btn.glam-filter-active {
    background: #0099bb;
    color: #fff;
    border-color: #0099bb;
    box-shadow: 0 4px 16px rgba(0,153,187,0.3);
}

/* ── Loading Spinner ──────────────────────────── */
.glam-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 120px;
}

.glam-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(0,153,187,0.15);
    border-top-color: #0099bb;
    border-radius: 50%;
    animation: glamSpin 0.7s linear infinite;
}

@keyframes glamSpin { to { transform: rotate(360deg); } }

/* ── Cards Grid ─────────────────────────────── */
.glam-scooters-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    transition: opacity 0.25s ease;
}

.glam-scooters-grid.glam-filtering {
    opacity: 0.4;
    pointer-events: none;
}

.glam-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px;
    color: #64748b;
    font-size: 15px;
}

/* ── Card ───────────────────────────────────── */
.glam-card {
    background: #ffffff;
    border: 1px solid rgba(0,153,187,0.15);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    animation: glamCardIn 0.35s ease both;
}

@keyframes glamCardIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.glam-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,153,187,0.12), 0 0 0 1px rgba(0,153,187,0.2);
}

/* ── Badge (top-right corner) ──────────────── */
.glam-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    border-radius: 6px;
    text-transform: uppercase;
    z-index: 2;
}
.glam-badge-rec  { background: #0099bb; color: #fff; }
.glam-badge-new  { background: #00a86b; color: #fff; }

/* ── Image ──────────────────────────────────── */
.glam-card-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #deeaf4 0%, #e8f2f9 100%);
    position: relative;
    overflow: hidden;
}

.glam-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

.glam-card:hover .glam-card-image img {
    transform: scale(1.04);
}

.glam-no-img { font-size: 70px; }

/* ── Battery Type Badge (on image) ─────────── */
.glam-battery-badge {
    position: absolute;
    bottom: 10px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
    z-index: 2;
}

.glam-battery-swap {
    background: rgba(0,153,187,0.9);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,153,187,0.35);
}

.glam-battery-fixed {
    background: rgba(30,41,59,0.85);
    color: #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* ── Divider ────────────────────────────────── */
.glam-card-divider {
    height: 2px;
    background: linear-gradient(90deg, #0099bb 0%, transparent 100%);
    opacity: 0.25;
}

/* ── Card Body ──────────────────────────────── */
.glam-card-body { padding: 24px; }

.glam-model-name {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #0f172a;
    line-height: 1;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.glam-brand-year {
    font-size: 11px;
    letter-spacing: 0.18em;
    color: #0099bb;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 18px;
}

/* ── Stats ──────────────────────────────────── */
.glam-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
}

.glam-stat-box {
    background: #f4f7fb;
    border: 1px solid rgba(0,153,187,0.15);
    border-radius: 10px;
    padding: 12px 14px;
    transition: border-color 0.2s;
}

.glam-card:hover .glam-stat-box { border-color: rgba(0,153,187,0.28); }

/* Highlight charge time stat */
.glam-stat-charge {
    background: linear-gradient(135deg, #f0fafe 0%, #e8f5fb 100%);
    border-color: rgba(0,153,187,0.25);
}

.glam-stat-value {
    font-size: 20px;
    font-weight: 800;
    color: #0099bb;
    letter-spacing: 0.02em;
    line-height: 1;
}

.glam-stat-label {
    font-size: 11px;
    color: #64748b;
    margin-top: 4px;
}

/* ── Description ────────────────────────────── */
.glam-description {
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.65;
    margin-bottom: 22px;
}

/* ── Buttons ────────────────────────────────── */
.glam-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.glam-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: center;
}

.glam-btn-primary { background: #0099bb; color: #fff; }
.glam-btn-primary:hover { background: #007a99; box-shadow: 0 4px 16px rgba(0,153,187,0.35); }

.glam-btn-secondary { background: transparent; color: #0099bb; border: 1.5px solid rgba(0,153,187,0.4); }
.glam-btn-secondary:hover { background: rgba(0,153,187,0.07); border-color: #0099bb; color: #0099bb; }

.glam-btn-brochure {
    background: transparent;
    color: #0099bb;
    border: 1.5px solid rgba(0,153,187,0.4);
}
.glam-btn-brochure:hover {
    background: #0099bb;
    color: #fff;
    border-color: #0099bb;
    box-shadow: 0 4px 16px rgba(0,153,187,0.3);
    text-decoration: none;
}

/* ── Brochures Section ──────────────────────── */
.glam-brochures-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
    font-family: 'Barlow', 'Segoe UI', sans-serif;
}

.glam-brochures-header {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(0,153,187,0.15);
}

.glam-brochures-title {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 0.04em;
    margin: 0 0 8px;
}

.glam-brochures-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.glam-brochures-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.glam-brochure-item {
    display: flex;
    align-items: center;
    gap: 18px;
    background: #fff;
    border: 1px solid rgba(0,153,187,0.15);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.glam-brochure-item:hover {
    box-shadow: 0 6px 24px rgba(0,153,187,0.1);
    border-color: rgba(0,153,187,0.3);
}

.glam-brochure-icon {
    width: 72px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #deeaf4, #e8f2f9);
    display: flex;
    align-items: center;
    justify-content: center;
}

.glam-brochure-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.glam-brochure-placeholder { font-size: 28px; }

.glam-brochure-info {
    flex: 1;
    min-width: 0;
}

.glam-brochure-name {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.glam-brochure-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #64748b;
}

.glam-brochure-battery {
    background: rgba(0,153,187,0.1);
    color: #0099bb;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 11px;
}

.glam-btn-download {
    flex-shrink: 0;
    background: #0099bb;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.glam-btn-download:hover {
    background: #007a99;
    box-shadow: 0 4px 16px rgba(0,153,187,0.35);
    color: #fff;
    text-decoration: none;
}

.glam-no-brochures {
    text-align: center;
    padding: 40px;
    color: #64748b;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px dashed rgba(0,153,187,0.2);
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 960px) {
    .glam-scooters-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .glam-scooters-grid { grid-template-columns: 1fr; }

    .glam-filter-bar { gap: 8px; }
    .glam-filter-btn { padding: 8px 16px; font-size: 11px; }

    .glam-brochure-item { flex-wrap: wrap; }
    .glam-brochure-icon { width: 52px; height: 44px; }
    .glam-btn-download { width: 100%; justify-content: center; }

    .glam-model-name { font-size: 24px; }
}

/* ── Brochure Button States ─────────────── */
.glam-btn-brochure {
    background: transparent;
    color: #0099bb;
    border: 1.5px solid rgba(0,153,187,0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    position: relative;
}
.glam-btn-brochure:hover:not(:disabled) {
    background: #0099bb;
    color: #fff;
    border-color: #0099bb;
    box-shadow: 0 4px 16px rgba(0,153,187,0.3);
}
.glam-btn-brochure:hover:not(:disabled) svg { stroke: #fff; }

.glam-btn-brochure.glam-btn-loading {
    opacity: 0.7;
    cursor: wait;
}
.glam-btn-brochure.glam-no-pdf {
    border-style: dashed;
    color: #94a3b8;
    border-color: rgba(148,163,184,0.5);
}
.glam-btn-brochure.glam-no-pdf:hover:not(:disabled) {
    background: #f8fafc;
    color: #64748b;
    border-color: #94a3b8;
    box-shadow: none;
}
.glam-btn-brochure.glam-no-pdf:hover svg { stroke: #64748b; }

.glam-brochure-icon-svg svg,
.glam-brochure-spinner svg { display: block; }

.glam-spin-icon {
    animation: glamSpin 0.7s linear infinite;
}

/* ── Modal ──────────────────────────────── */
#glam-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.55);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#glam-modal-box {
    background: #fff;
    border-radius: 16px;
    padding: 36px 32px 28px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 24px 60px rgba(0,0,0,0.2);
    text-align: center;
    position: relative;
    animation: glamModalIn 0.22s ease;
}

@keyframes glamModalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

#glam-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 22px;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}
#glam-modal-close:hover { color: #0f172a; background: #f1f5f9; }

#glam-modal-icon { font-size: 44px; margin-bottom: 14px; }

#glam-modal-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 0.02em;
    margin: 0 0 10px;
    text-transform: uppercase;
}

#glam-modal-msg {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 24px;
}

#glam-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.glam-modal-btn {
    padding: 11px 24px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: all 0.2s;
    display: inline-block;
}
.glam-modal-btn-primary {
    background: #0099bb;
    color: #fff;
}
.glam-modal-btn-primary:hover { background: #007a99; color: #fff; text-decoration: none; }
.glam-modal-btn-secondary {
    background: transparent;
    color: #64748b;
    border: 1.5px solid #e2e8f0;
}
.glam-modal-btn-secondary:hover { background: #f8fafc; color: #0f172a; }

/* ── Toast ──────────────────────────────── */
#glam-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    z-index: 100000;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    pointer-events: none;
}
#glam-toast.glam-toast-success {
    background: #0f172a;
    color: #fff;
}
#glam-toast.glam-toast-error {
    background: #b91c1c;
    color: #fff;
}

@media (max-width: 480px) {
    #glam-modal-box { padding: 28px 20px 22px; }
    #glam-toast { width: 90%; text-align: center; white-space: normal; }
}
