/**
 * DGLP Public Runtime Styles
 *
 * Minimal styles for dynamic components. Under 5 KB compressed target.
 */

/* Sticky mobile CTA */
.dglp-sticky-mobile-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 12px 16px;
    background: #fff;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

@media (max-width: 768px) {
    .dglp-sticky-mobile-cta {
        display: block;
    }
}

.dglp-sticky-mobile-cta a {
    display: block;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
}

/* Trust bar */
.dglp-trust-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: center;
    padding: 16px 0;
}

.dglp-trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.dglp-trust-stars {
    color: #f5a623;
    letter-spacing: 2px;
}

/* Benefits */
.dglp-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.dglp-benefit-title {
    margin-bottom: 8px;
}

/* FAQ */
.dglp-faq-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 12px 0;
}

.dglp-faq-question {
    cursor: pointer;
    font-weight: 600;
    padding: 8px 0;
    list-style: none;
}

.dglp-faq-question::-webkit-details-marker {
    display: none;
}

.dglp-faq-answer {
    padding: 8px 0 16px;
}

/* Testimonial */
.dglp-testimonial {
    padding: 24px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #ccc;
}

.dglp-testimonial-quote {
    font-style: italic;
    margin-bottom: 12px;
}

.dglp-testimonial-attribution {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.dglp-testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* Form wrapper */
.dglp-form-wrapper {
    margin-top: 32px;
}

.dglp-form-heading {
    margin-bottom: 16px;
}

/* Phone and email links */
.dglp-phone-link,
.dglp-email-link {
    display: inline-block;
}

/* ===================================================================
   Admin Toolbar — visible to logged-in admins on landing pages
   =================================================================== */
.dglp-admin-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99998;
    background: rgba(30, 30, 30, 0.92);
    color: #fff;
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.dglp-admin-bar__status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.dglp-admin-bar__status--ok {
    color: #4caf50;
}

.dglp-admin-bar__status--warn {
    color: #ffb74d;
}

.dglp-admin-bar__url {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #ccc;
    font-family: monospace;
    font-size: 12px;
}

.dglp-admin-bar__actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.dglp-admin-bar__btn {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.dglp-admin-bar__btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.dglp-admin-bar__dismiss {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 16px;
    padding: 0 4px;
    line-height: 1;
}

.dglp-admin-bar__dismiss:hover {
    color: #fff;
}

/* Admin-only content — hidden by default, shown by toolbar JS */
.dglp-admin-callout,
.dglp-shortcode-annotation {
    display: none !important;
}

.dglp-admin-callout--visible,
.dglp-shortcode-annotation--visible {
    display: block !important;
}

.dglp-admin-callout {
    background: #f0f6fc;
    border: 2px solid #2271b1;
    border-radius: 8px;
    padding: 0;
    margin: 0;
}

.dglp-admin-callout__inner {
    padding: 16px 20px;
    font-size: 14px;
    line-height: 1.6;
    color: #1d2327;
}

.dglp-admin-callout a {
    color: #2271b1;
}

.dglp-shortcode-annotation {
    background: #fef9ee;
    border: 1px solid #dba617;
    border-radius: 4px;
    padding: 8px 12px;
    margin: 12px 0 4px;
    font-size: 12px;
    color: #5c4a1f;
    line-height: 1.5;
}
