/* ==========================================================
   WEYWOT TABS - PREMIUM STYLES 2.0 (KOZACKIE ZAKŁADKI)
   ========================================================== */

/* 1. MOTYW: A&J Premium */
.theme-aj-premium {
    --wt-bg: #ffffff;
    --wt-nav-bg: #f4f7f9;
    --wt-nav-radius: 50px; /* Styl Pigułki */
    --wt-text: #444444;
    --wt-title: #19344f;
    --wt-border: #edf1f5;
    --wt-active-bg: var(--brand-color, #c0955e);
    --wt-active-text: #ffffff;
    --wt-active-shadow: 0 8px 20px rgba(192, 149, 94, 0.35);
}

/* 2. MOTYW: Dark Glass */
.theme-dark-glass {
    --wt-bg: rgba(15, 15, 15, 0.6);
    --wt-nav-bg: rgba(0, 0, 0, 0.5);
    --wt-nav-radius: 12px;
    --wt-text: #cccccc;
    --wt-title: #ffffff;
    --wt-border: rgba(255, 255, 255, 0.1);
    --wt-active-bg: rgba(25, 52, 79, 0.9);
    --wt-active-text: var(--brand-color, #c0955e);
    --wt-active-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

/* 3. MOTYW: Light Glass */
.theme-light-glass {
    --wt-bg: rgba(255, 255, 255, 0.7);
    --wt-nav-bg: rgba(255, 255, 255, 0.5);
    --wt-nav-radius: 12px;
    --wt-text: #555555;
    --wt-title: #111111;
    --wt-border: rgba(0, 0, 0, 0.05);
    --wt-active-bg: #ffffff;
    --wt-active-text: var(--brand-color, #c0955e);
    --wt-active-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* ==========================================================
   STRUKTURA GŁÓWNA - EFEKT KARTY
   ========================================================== */
.weywot-tabs-wrapper {
    background: var(--wt-bg);
    border: 1px solid var(--wt-border);
    border-radius: 16px; /* Miękkie, nowoczesne rogi */
    box-shadow: 0 15px 50px rgba(25, 52, 79, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    margin: 20px 0 40px 0;
    padding: 12px; /* Wewnętrzna ramka otulająca nawigację */
}

/* Nawigacja (Przyciski - Styl Segmented Control / Pills) */
.wt-nav {
    display: flex;
    background: var(--wt-nav-bg);
    border-radius: var(--wt-nav-radius);
    padding: 8px;
    margin-bottom: 25px;
    position: relative;
    gap: 8px;
}

.wt-nav-btn {
    flex: 1;
    background: transparent;
    border: none;
    border-radius: calc(var(--wt-nav-radius) - 6px); /* Idealne spasowanie z tłem */
    padding: 16px 20px;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--wt-title);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Elastyczna animacja sprężyny */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: 'Quicksand', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.wt-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.wt-nav-btn.active {
    background: var(--wt-active-bg);
    color: var(--wt-active-text);
    box-shadow: var(--wt-active-shadow);
    transform: scale(1.02);
}

/* Poprawka koloru ikon SVG dla motywu A&J Premium (Białe ikony na miedzianym tle) */
.wt-icon { display: flex; align-items: center; justify-content: center; }
.theme-aj-premium .wt-nav-btn.active .wt-icon svg { fill: #ffffff; }

/* Treść Paneli */
.wt-content-container { 
    position: relative; 
    padding: 10px 25px 25px 25px;
}

.wt-pane {
    display: none;
    opacity: 0;
    color: var(--wt-text);
    line-height: 1.8;
}

/* Animacja wejścia nowej zakładki (Float Up) */
.wt-pane.active { 
    display: block; 
    opacity: 1; 
    animation: floatUp 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes floatUp {
    0% { opacity: 0; transform: translateY(25px) scale(0.98); filter: blur(4px); }
    100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* Magiczne formatowanie HTML wpisanego w edytorze (Nagłówki i listy) */
.wt-pane-inner h3 {
    font-size: 2rem !important;
    margin-top: 0 !important;
    margin-bottom: 25px !important;
    position: relative;
    padding-bottom: 15px;
    color: var(--wt-title) !important;
}

/* Złota linia dekoracyjna pod tytułem w zakładce */
.wt-pane-inner h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 70px;
    height: 4px;
    background: var(--brand-color, #c0955e);
    border-radius: 2px;
}

.wt-pane-inner p { font-size: 1.15rem; }

/* ==========================================================
   UKŁAD PIONOWY (VERTICAL) - DLA ROBUDOWANYCH OFERT
   ========================================================== */
.weywot-tabs-wrapper.layout-vertical {
    display: flex;
    align-items: stretch;
    padding: 0; /* Reset dla pionu */
}

.layout-vertical .wt-nav {
    flex-direction: column;
    width: 320px;
    flex-shrink: 0;
    border-radius: 0;
    margin-bottom: 0;
    padding: 25px;
    background: var(--wt-nav-bg);
    border-right: 1px solid var(--wt-border);
}

.layout-vertical .wt-nav-btn {
    justify-content: flex-start;
    padding: 18px 25px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.layout-vertical .wt-content-container { 
    flex-grow: 1; 
    padding: 45px;
}

/* ==========================================================
   RWD - RESPONSYWNOŚĆ NA TELEFONY
   ========================================================== */
@media (max-width: 991px) {
    .wt-nav { flex-direction: column !important; border-radius: 12px; padding: 10px; background: transparent; }
    .wt-nav-btn { justify-content: center !important; border-radius: 8px !important; padding: 15px !important; margin-bottom: 5px; background: var(--wt-nav-bg); }
    .wt-nav-btn.active { transform: scale(1) translateY(0); }
    .weywot-tabs-wrapper.layout-vertical { flex-direction: column; }
    .layout-vertical .wt-nav { width: 100%; border-right: none; border-bottom: 1px solid var(--wt-border); }
    .layout-vertical .wt-content-container, .wt-content-container { padding: 25px 10px; }
    .wt-pane-inner h3 { font-size: 1.6rem !important; }
}