/* ============================================================
   SOLUTIONS.CSS — Sekcja rozwiązań z zakładkami (Tabs)
   ============================================================ */

.solutions {
    padding: var(--space-24) 0;
    background-color: var(--color-white);
    position: relative;
    overflow: hidden;
}

/* Kształty tła (Light Theme) */
.solutions::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -150px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.03) 0%, transparent 60%);
    border-radius: 50%;
    transform: translateY(-50%);
    z-index: 1;
    pointer-events: none;
}

.solutions::after {
    content: '';
    position: absolute;
    top: 10%;
    right: 5%;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.04) 0%, transparent 70%);
    border: 1px dashed rgba(37, 99, 235, 0.1);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; /* organic shape */
    transform: rotate(-15deg);
    z-index: 1;
    pointer-events: none;
}

.solutions__container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    position: relative;
    z-index: 2;
}

.solutions__header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto var(--space-16);
}

.solutions__layout {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

/* --- Tabs (Poziome menu na górze) --- */

.solutions__tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.solutions__tab {
    background: none;
    border: 1px solid var(--color-slate-200);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    text-align: left;
    cursor: pointer;
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.solutions__tab:hover {
    border-color: var(--color-primary-light);
    background-color: var(--color-slate-50);
}

.solutions__tab.active {
    border-color: var(--color-primary);
    background-color: var(--color-blue-50);
    box-shadow: var(--shadow-card);
}

.solutions__tab-title {
    font-weight: var(--font-bold);
    font-size: var(--text-lg);
    color: var(--color-slate-950);
}

.solutions__tab-desc {
    font-size: var(--text-xs);
    color: var(--color-slate-500);
}

.solutions__tab.active .solutions__tab-title {
    color: var(--color-primary);
}

/* --- Content (Prawa strona) --- */

.solutions__content-wrapper {
    background: var(--color-slate-950);
    border-radius: var(--radius-xl);
    padding: var(--space-12);
    min-height: 480px;
    color: var(--color-white);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.solutions__content-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -60px;
    width: 420px;
    height: 420px;
    background-image: url('../../assets/images/logo-mark.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    opacity: 0.25;
    transform: translateY(-50%) rotate(-15deg);
    pointer-events: none;
    z-index: -1;
}

.solutions__content {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.solutions__content.active {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr; /* lewa: info główne, prawa: przykłady branżowe */
    gap: var(--space-12);
    align-items: start;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.solutions__text h3 {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-6);
    color: var(--color-white);
}

.solutions__text p {
    color: var(--color-slate-400);
    line-height: 1.7;
    margin-bottom: var(--space-8);
}

.solutions__features {
    list-style: none;
    padding: 0;
    margin-bottom: var(--space-8);
}

.solutions__feature {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
    font-size: var(--text-sm);
}

.solutions__feature svg {
    color: var(--color-success);
    flex-shrink: 0;
}

.solutions__visual {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- Industry Examples (Prawa kolumna) --- */

.solutions__examples {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.solutions__example-heading {
    font-size: var(--text-sm);
    color: var(--color-primary-light);
    font-weight: var(--font-bold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-4);
}

.industry-case {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-base);
    overflow: hidden;
    transition: var(--transition-base);
}

.industry-case:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

.industry-case__summary {
    padding: var(--space-4) var(--space-5);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: var(--font-semibold);
    color: var(--color-white);
    font-size: var(--text-base);
}

.industry-case__summary::-webkit-details-marker {
    display: none;
}

.industry-case__summary::after {
    content: '+';
    font-size: var(--text-xl);
    color: var(--color-slate-400);
    transition: transform var(--transition-base);
}

.industry-case[open] .industry-case__summary::after {
    transform: rotate(45deg);
    color: var(--color-primary-light);
}

.industry-case__content {
    padding: 0 var(--space-5) var(--space-5);
    font-size: var(--text-sm);
    color: var(--color-slate-300);
    line-height: 1.6;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: var(--space-4);
}

.industry-case__content strong {
    color: var(--color-white);
    display: block;
    margin-bottom: var(--space-1);
}

.industry-case__content p {
    margin-bottom: var(--space-3);
    color: var(--color-slate-400);
    font-size: var(--text-xs);
}

/* --- Responsive --- */

@media (max-width: 1024px) {
    .solutions__tabs {
        grid-template-columns: 1fr;
        gap: var(--space-2);
    }
    
    .solutions__content.active {
        grid-template-columns: 1fr;
    }
}
