/* =========================================
   MODULES SHOWCASE - PREMIUM UI
   ========================================= */

.modules-showcase-vw {
    position: relative;
    padding: 120px 0;
    background: #ffffff;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    z-index: 1;
}

.showcase-glow-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(79,70,229,0.15) 0%, rgba(0,0,0,0) 70%);
    position: absolute;
    top: -200px; left: -200px;
    z-index: -1;
}
.showcase-glow-2 {
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(168,85,247,0.1) 0%, rgba(0,0,0,0) 70%);
    position: absolute;
    bottom: -300px; right: -200px;
    z-index: -1;
}

.showcase-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* --- NAGŁÓWEK SEKCJI --- */
.showcase-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.showcase-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted, #64748B);
    line-height: 1.6;
    margin-top: 20px;
}

/* --- NAWIGACJA ZAKŁADEK (TABS) --- */
.tabs-navigation {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
    background: var(--bg-slate, #F8FAFC);
    padding: 10px;
    border-radius: 99px;
    border: 1px solid var(--border-soft, #E2E8F0);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 14px 28px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-muted, #64748B);
    border-radius: 99px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab-btn:hover {
    color: var(--text-main, #0F172A);
}

.tab-btn.active {
    background: white;
    color: var(--primary, #4F46E5);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transform: scale(1.05);
}

.tab-btn.active i {
    color: var(--accent, #A855F7);
}

/* --- SIATKA MODUŁÓW (BENTO GRID) --- */
.tabs-content-wrapper {
    position: relative;
    min-height: 400px;
}

.tab-content {
    display: none;
    animation: fadeInTab 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.tab-content.active {
    display: block;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

/* --- KARTY MODUŁÓW --- */
.module-card {
    background: white;
    border: 1px solid var(--border-soft, #E2E8F0);
    border-radius: 24px;
    padding: 35px 30px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--primary, #4F46E5), var(--accent, #A855F7));
    opacity: 0;
    transition: opacity 0.4s;
}

/* --- STYLIZACJA KART PRO --- */
.module-card.pro-card {
    border-color: #FDE68A;
    background: linear-gradient(180deg, #FFFBFA 0%, #FFFFFF 100%);
}

.module-card.pro-card::before {
    background: linear-gradient(90deg, #F59E0B, #F97316); /* Złoto-pomarańczowy */
}

.pro-tag {
    background: linear-gradient(135deg, #F59E0B, #EA580C);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 8px;
    margin-left: 8px;
    vertical-align: middle;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
}

.module-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.1);
    border-color: transparent;
}

.module-card.pro-card:hover {
    box-shadow: 0 25px 50px -12px rgba(245, 158, 11, 0.15);
}

.module-card:hover::before {
    opacity: 1;
}

.module-icon {
    width: 60px; height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 25px;
    transition: transform 0.4s;
}

.module-card:hover .module-icon {
    transform: scale(1.1) rotate(-5deg);
}

/* Kolory ikon w zależności od kategorii */
.sales-icon { background: #EEF2FF; color: #4F46E5; }
.log-icon { background: #F0FDF4; color: #16A34A; }
.com-icon { background: #FFF7ED; color: #EA580C; }
.growth-icon { background: #FAF5FF; color: #A855F7; }
.module-icon.pro-icon { background: #FEF3C7; color: #D97706; } /* Złota ikona dla PRO */

.module-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main, #0F172A);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.module-card p {
    font-size: 0.95rem;
    color: var(--text-muted, #64748B);
    line-height: 1.6;
    margin: 0;
}

/* --- ANIMACJE WEJŚCIOWE --- */
@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.anim-card {
    opacity: 0;
    transform: translateY(30px);
}

.anim-card.animate-in {
    animation: slideUpCard 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpCard {
    to { opacity: 1; transform: translateY(0); }
}

/* Opóźnienia animacji w siatce (grid) */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

.show-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.show-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsywność */
@media (max-width: 768px) {
    .tabs-navigation { flex-direction: column; width: 100%; border-radius: 20px; }
    .tab-btn { justify-content: center; border-radius: 12px; }
    .modules-showcase-vw { padding: 80px 0; }
}