/* public/assets/css/style.css */

body {
    padding-bottom: 40px;
}

/* Navbar logo */
.offer-page-logo-img {
    max-height: 100px;
    max-width: 200px;
    height: auto;
    width: auto;
    display: inline-block;
}

/* Offer sections */
.offer-section {
    padding-top: 40px;
    border-bottom: 1px solid #eee;
    min-height: 100vh;
    position: relative;
}

/* Scroll arrow at bottom of each section */
.offer-section-arrow-wrapper {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.offer-section-arrow-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    color: #888;
}

.offer-section-arrow-btn:hover {
    color: #000;
}

/* Desktop side menu */
#offerMenu {
    top: 20px;
}

.offer-page-navbar-container {
    padding-left: 0;
}

.offer-page-content-col .offer-section:nth-last-child(1 of .offer-section) {
    min-height: auto !important;
    padding-bottom: 2rem;
}

/* Mobile horizontal menu */
.offer-page-mobile-menu-wrapper {
    margin-bottom: 10px;
    display: none; /* domyślnie ukryte, pokazujemy na małych ekranach */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background-color: #ffffff;
    padding: 4px 8px;
    border-bottom: 1px solid #eee;
}

.offer-page-mobile-menu {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-wrap: nowrap;
}

.offer-page-mobile-menu.list-group {
    flex-direction: row;
}

.offer-page-mobile-menu .list-group-item {
    flex: 0 0 auto;
    margin-right: 4px;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.9rem;
    white-space: nowrap;
    width: auto;
}

/* Aktywne pozycje menu (desktop + mobile) */
#offerMenu .list-group-item.active,
.offer-page-mobile-menu .list-group-item.active {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

/* Responsywność: na małych ekranach używamy tylko menu mobilnego */
@media (max-width: 767.98px) {
    body {
        padding-top: 52px; /* miejsce na fixed mobile menu, żeby sekcje nie wchodziły pod nie */
    }

    .offer-page-menu-col {
        display: none;
    }

    .offer-page-mobile-menu-wrapper {
        display: block;
    }
}


/* Layouty sekcji z szablonami (tekst / obrazki) */
.offer-section-layout {
    margin-top: 10px;
}

.offer-section-text-col {
    font-size: 1rem;
}

.offer-section-image-col {
    margin-bottom: 10px;
}

.offer-section-image {
    max-width: 100%;
    height: auto;
    display: inline-block;
}


/* Edytor treści sekcji z podglądem (HTML) */
.offers-form-section-content-row {
    position: relative;
}

.offers-form-section-content-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
}

.offers-form-section-toolbar-btn {
    padding: 2px 6px;
    font-size: 0.8rem;
}

.offers-form-section-content-editor {
    min-height: 120px;
    max-height: 400px;
    overflow-y: auto;
    background-color: #ffffff;
    font-size: 0.95rem;
}

/* Edytor treści - tryb wielokolumnowy (panel admina) */
.offers-form-section-multicol-container {
    margin-bottom: 0.5rem;
}

.offers-form-section-multicol-info {
    font-size: 0.8rem;
    color: #555;
    margin-bottom: 0.25rem;
}

.offers-form-section-multicol-textarea {
    font-size: 0.9rem;
}

/* Struktura HTML zapisywana w polu treści dla szablonów wielokolumnowych */
.offer-section-multicol {
    display: flex;
    gap: 2rem;
}

.offer-section-multicol-col {
    flex: 1 1 0;
}

/* Na stronie publicznej na małych ekranach lepiej jedna kolumna */
@media (max-width: 767.98px) {
    .offer-section-multicol {
        display: block;
    }

    .offer-section-multicol-col {
        margin-bottom: 1rem;
    }
}

.offers-form-section-content-editor:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(13,110,253,.25);
}

.offers-form-section-content-textarea {
    display: none; /* textarea jest storage dla HTML, podgląd w edytorze */
}


.offers-form-section-card-arrows {
    cursor: pointer;
    font-size: 0.85rem;
}

.offers-form-section-card-id {
    font-weight: 500;
}

.offers-form-section-card-toggle {
    min-width: 2.2rem;
}

