/* FrontPage full-viewport layout */

.main-content-area > div:has(.frontpage-layout),
.main-content-area > div:has(.frontpage-layout) > .page-container {
    height: 100%;
}

.main-content-area:has(.frontpage-layout) {
    overflow: hidden;
}

.frontpage-layout {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    outline: none;
}

.frontpage-top {
    flex-shrink: 0;
}

.frontpage-middle {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 0.75rem 0;
}

.frontpage-bottom {
    flex-shrink: 0;
    padding-top: 0.5rem;
}

.frontpage-content-area {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    position: relative;
}

.frontpage-insights-overlay {
    position: absolute;
    inset: 0;
    background: #f8f9fa;
    z-index: 10;
    display: flex;
    flex-direction: column;
    border-radius: 4px;
}

/* Insights carousel navigation */

.insights-carousel {
    display: flex;
    align-items: stretch;
    gap: 0.75rem;
}

.insights-carousel-nav {
    display: flex;
    align-items: center;
    background: none;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 0 0.5rem;
    color: #1d1d1d;
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s;
    flex-shrink: 0;
}

.insights-carousel-nav:hover:not(:disabled) {
    border-color: #1d1d1d;
    background-color: #f8f9fa;
}

.insights-carousel-nav:disabled {
    opacity: 0.3;
    cursor: default;
}

.insights-carousel-content {
    flex: 1;
    min-width: 0;
}

.insights-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.insights-carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #dee2e6;
    transition: background-color 0.15s;
}

.insights-carousel-dot.active {
    background-color: #1d1d1d;
}

/* Chat expand animation */
@keyframes fp-expand {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}

.fp-expand-in {
    animation: fp-expand 0.25s ease-out forwards;
}
