/* ── Sunvoy Portal Public Styles ──────────────────────────────────────────── */

/* Floating Bar */
.sunvoy-bar {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 99999;
    background-color: var(--sunvoy-bar-bg, #1a1a2e);
    color: var(--sunvoy-bar-color, #ffffff);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    transition: transform 0.3s ease;
}

.sunvoy-bar--top    { top: 0; }
.sunvoy-bar--bottom { bottom: 0; }

.sunvoy-bar--top.sunvoy-bar--hidden    { transform: translateY(-100%); }
.sunvoy-bar--bottom.sunvoy-bar--hidden { transform: translateY(100%); }

.sunvoy-bar__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 16px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.sunvoy-bar__logo {
    height: 22px;
    width: auto;
    vertical-align: middle;
}

.sunvoy-bar__logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.sunvoy-bar__link {
    color: var(--sunvoy-bar-color, #ffffff);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.2s;
}

.sunvoy-bar__link:hover {
    opacity: 0.85;
    text-decoration: underline;
}

.sunvoy-bar__arrow {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.sunvoy-bar__close {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--sunvoy-bar-color, #ffffff);
    font-size: 16px;
    cursor: pointer;
    padding: 4px 8px;
    opacity: 0.7;
    line-height: 1;
    transition: opacity 0.2s;
}

.sunvoy-bar__close:hover { opacity: 1; }

/* When bar is at top, nudge the body down to avoid overlap */
body.sunvoy-has-top-bar {
    padding-top: 44px !important;
}

/* Nav menu item accent */
.sunvoy-portal-menu-item > a {
    font-weight: 700 !important;
}

/* ── Embed Containers ────────────────────────────────────────────────────── */
.sunvoy-embed-wrap {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.12);
    margin: 24px 0;
}

.sunvoy-embed-wrap iframe {
    width: 100%;
    border: none;
    display: block;
}

.sunvoy-embed-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.sunvoy-embed-tab {
    padding: 8px 18px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}

.sunvoy-embed-tab.active,
.sunvoy-embed-tab:hover {
    background: #f0b429;
    color: #1a1a2e;
    border-color: #f0b429;
}

/* ── Monitoring grid ─────────────────────────────────────────────────────── */
.sunvoy-monitoring-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.sunvoy-monitoring-section {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 8px rgba(0,0,0,0.1);
}

.sunvoy-monitoring-section h3 {
    margin: 0;
    padding: 10px 16px;
    background: #1a1a2e;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

/* ── Site Map ────────────────────────────────────────────────────────────── */
.sunvoy-sitemap-wrap {
    width: 100%;
    margin: 24px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.12);
}

.sunvoy-sitemap-wrap iframe {
    width: 100%;
    border: none;
    display: block;
}

/* ── Share / Lead Gen ────────────────────────────────────────────────────── */
.sunvoy-share-wrap {
    width: 100%;
    margin: 24px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0,0,0,0.14);
}

.sunvoy-share-wrap iframe {
    width: 100%;
    border: none;
    display: block;
}

/* ── No-URL notice ───────────────────────────────────────────────────────── */
.sunvoy-no-url-notice {
    background: #fff8e1;
    border-left: 4px solid #f0b429;
    padding: 16px 20px;
    border-radius: 4px;
    font-size: 14px;
}
