/* =============================================
   İhtiyaca Göre / By Need Page Styles
   ============================================= */

/* ── Hero ── */
.need-hero {
    padding: 140px 0 90px;
    background: linear-gradient(135deg, var(--color-dark-blue) 0%, #1a1a1a 100%);
    color: var(--color-white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.need-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle at 65% 45%, rgba(48, 213, 200, 0.07) 0%, transparent 55%);
    pointer-events: none;
}

.need-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}

.need-hero-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-primary);
    border: 1px solid rgba(48, 213, 200, 0.35);
    padding: 0.35rem 1.1rem;
    border-radius: 20px;
    margin-bottom: 1.6rem;
    animation: fadeInDown 0.6s ease both;
}

.need-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-white);
    margin-bottom: 1.25rem;
    animation: fadeInDown 0.6s ease 0.1s both;
}

.need-hero h1 .highlight {
    color: var(--color-primary);
}

.need-hero-desc {
    font-size: 1.15rem;
    color: var(--color-gray-400);
    line-height: 1.65;
    animation: fadeInDown 0.6s ease 0.2s both;
}

/* ── Explorer Section ── */
.use-case-section {
    padding: 80px 0 110px;
    background: var(--color-gray-100);
}

.explorer-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

/* ── Use Case Cards (left column) ── */
.use-case-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.use-case-card {
    background: var(--color-white);
    border: 1.5px solid var(--color-gray-200);
    border-radius: 14px;
    padding: 20px 22px;
    cursor: pointer;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    position: relative;
    /* entrance animation */
    opacity: 0;
    transform: translateX(-18px);
    transition: opacity 0.4s ease, transform 0.4s ease,
                border-color 0.22s ease, box-shadow 0.22s ease;
}

.use-case-card.visible {
    opacity: 1;
    transform: translateX(0);
}

.use-case-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 20px rgba(48, 213, 200, 0.13);
    transform: translateX(5px);
}

.use-case-card.active {
    border-color: var(--color-primary);
    background: rgba(48, 213, 200, 0.04);
    box-shadow: 0 6px 28px rgba(48, 213, 200, 0.2);
    transform: translateX(5px);
}

.card-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 1px;
}

.card-text {
    flex: 1;
}

.use-case-card h3 {
    font-size: 0.975rem;
    font-weight: 600;
    color: var(--color-gray-900);
    margin-bottom: 4px;
    line-height: 1.35;
}

.use-case-card p {
    font-size: 0.83rem;
    color: var(--color-gray-600);
    line-height: 1.5;
    margin: 0;
}

.card-arrow {
    margin-left: auto;
    color: var(--color-primary);
    font-size: 1.2rem;
    flex-shrink: 0;
    align-self: center;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.use-case-card:hover .card-arrow,
.use-case-card.active .card-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ── Detail Panel (right column) ── */
.detail-panel {
    position: sticky;
    top: 100px;
    background: var(--color-white);
    border-radius: 18px;
    border: 1.5px solid var(--color-gray-200);
    padding: 36px 38px;
    min-height: 440px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
}

/* Placeholder state */
.detail-placeholder {
    text-align: center;
    padding: 48px 20px;
    color: var(--color-gray-500);
}

.placeholder-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    animation: bob 2.2s ease-in-out infinite;
    display: block;
}

@keyframes bob {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-9px); }
}

.detail-placeholder p {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--color-gray-500);
}

/* Detail content blocks */
.detail-content {
    display: none;
    flex-direction: column;
    gap: 0;
}

.detail-content.active {
    display: flex;
}

/* Step rows */
.detail-step {
    display: flex;
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px solid var(--color-gray-200);
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.38s ease, transform 0.38s ease;
}

.detail-step:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-step.animate {
    opacity: 1;
    transform: translateY(0);
}

.step-icon {
    font-size: 1.45rem;
    flex-shrink: 0;
    width: 36px;
    text-align: center;
    margin-top: 2px;
}

.detail-step h4 {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    margin-bottom: 6px;
}

.step-problem  h4 { color: #e05252; }
.step-solution h4 { color: var(--color-primary); }
.step-result   h4 { color: #3bab6b; }

.detail-step p {
    font-size: 0.9rem;
    color: var(--color-gray-700);
    line-height: 1.62;
    margin: 0;
}

.detail-step ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-step ul li {
    font-size: 0.875rem;
    color: var(--color-gray-700);
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.detail-step ul li::before {
    content: '✓';
    color: #3bab6b;
    position: absolute;
    left: 0;
    font-weight: 700;
}

/* CTA button inside panel */
.detail-cta {
    margin-top: 26px;
    align-self: flex-start;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.38s ease, transform 0.38s ease;
}

.detail-cta.animate {
    opacity: 1;
    transform: translateY(0);
}

/* ── Bottom CTA Section ── */
.need-cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--color-dark-blue) 0%, #1a1a1a 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.need-cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(48, 213, 200, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.need-cta-inner {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.need-cta-inner h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 1rem;
    line-height: 1.35;
}

.need-cta-inner p {
    font-size: 1.1rem;
    color: var(--color-gray-400);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.need-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Entrance animations ── */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .explorer-layout {
        grid-template-columns: 1fr;
    }

    .detail-panel {
        position: static;
    }

    .need-hero h1 {
        font-size: 2.25rem;
    }
}

@media (max-width: 576px) {
    .need-hero {
        padding: 110px 0 70px;
    }

    .need-hero h1 {
        font-size: 1.8rem;
    }

    .detail-panel {
        padding: 24px 20px;
        min-height: auto;
    }

    .need-cta-inner h2 {
        font-size: 1.6rem;
    }
}
