/**
 * Strony podrzędne - domyślne style buttonów
 * Nadpisywalne przez kontrolki Elementora (wyższa specyficzność via {{WRAPPER}})
 */

/* === Grid === */
.ba-subpages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    width: 100%;
}

/* === Przycisk === */
.ba-subpage-btn {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background-color: #547aa5;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.ba-subpage-btn:hover {
    background-color: #4A90D9;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* === Pozycja ikony: left === */
.ba-subpage-btn--left {
    flex-direction: row;
}

/* === Pozycja ikony: right === */
.ba-subpage-btn--right {
    flex-direction: row;
    justify-content: space-between;
}

/* === Pozycja ikony: top === */
.ba-subpage-btn--top {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* === Ikona === */
.ba-subpage-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
    transition: color 0.2s ease;
}

.ba-subpage-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    transition: fill 0.2s ease;
}

.ba-subpage-btn--left .ba-subpage-icon {
    margin-right: 10px;
}

.ba-subpage-btn--right .ba-subpage-icon {
    margin-left: 10px;
}

.ba-subpage-btn--top .ba-subpage-icon {
    margin-bottom: 10px;
}

/* === Tytuł === */
.ba-subpage-title {
    font-weight: 600;
    font-size: 0.95em;
    line-height: 1.3;
}

/* === Komunikat: brak stron podrzędnych (edytor) === */
.ba-subpages-empty {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
    padding: 30px 20px;
    border: 1px dashed #ccc;
    border-radius: 6px;
}

/* === Responsywność === */
@media (max-width: 767px) {
    .ba-subpages-grid {
        grid-template-columns: 1fr;
    }

    .ba-subpage-btn {
        padding: 14px 16px;
    }
}
