@import '../../utils/shared-styles.scss';

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    margin-bottom: 4rem;
}

.process-detail {
    padding-block: 2rem;
}

/* ===== HERO ===== */
.hero-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e7eeff 100%);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;

    &::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 20% 30%, rgba(37, 99, 235, 0.06) 0%, transparent 50%);
        pointer-events: none;
    }

    .hero-content {
        position: relative;
        z-index: 2;
        text-align: center;
        max-width: 800px;
        margin: 0 auto;
        display: grid;
        gap: 1.25rem;
    }

    .hero-badge {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        align-self: center;
        background: linear-gradient(135deg, #2563eb, #3b82f6);
        color: white;
        padding: 0.625rem 1.5rem;
        border-radius: 999px;
        font-size: 0.875rem;
        font-weight: 700;
        box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
        width: fit-content;
        margin: 0 auto;
    }

    h1 {
        font-size: clamp(2rem, 4vw, 3rem);
        font-weight: 900;
        color: $color-text-primary;
        line-height: 1.2;
        margin: 0;
    }

    .hero-description {
        font-size: clamp(1rem, 1.5vw, 1.125rem);
        color: $color-text-secondary;
        line-height: 1.6;
        margin: 0;
    }

    .hero-stats {
        display: flex;
        gap: 2rem;
        justify-content: center;
        flex-wrap: wrap;
        margin-top: 1rem;

        .stat-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.25rem;

            .stat-number {
                font-size: 2rem;
                font-weight: 900;
                background: linear-gradient(135deg, #2563eb, #3b82f6);
                -webkit-background-clip: text;
                background-clip: text;
                -webkit-text-fill-color: transparent;
                line-height: 1;
            }

            .stat-label {
                font-size: 0.875rem;
                color: $color-text-secondary;
                font-weight: 600;
            }
        }
    }
}

/* ===== STEPS ===== */
.steps-section {
    .steps-wrapper {
        display: grid;
        gap: 2.5rem;
        max-width: 900px;
        margin: 0 auto;
    }
}

.step-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);

    &:hover {
        transform: translateY(-4px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
        border-color: #3b82f6;

        .step-number {
            transform: scale(1.1);
        }
    }

    .step-number {
        position: absolute;
        top: -20px;
        left: -1rem;
        width: 48px;
        height: 48px;
        background: linear-gradient(135deg, #2563eb, #3b82f6);
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        font-weight: 900;
        box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
        transition: transform 0.3s ease;
    }

    .step-content {
        display: grid;
        gap: 1.25rem;
    }

    .step-icon {
        width: 64px;
        height: 64px;
        background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(59, 130, 246, 0.1));
        border-radius: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 0.5rem;

        .material-symbols-outlined {
            font-size: 36px;
            color: #2563eb;
        }
    }

    h3 {
        font-size: 1.5rem;
        font-weight: 800;
        color: $color-text-primary;
        margin: 0;
    }

    .step-description {
        font-size: 1.0625rem;
        color: $color-text-secondary;
        line-height: 1.6;
        margin: 0;
    }

    .step-details {
        display: grid;
        gap: 1.25rem;
        grid-template-columns: 1fr;
        margin-top: 0.5rem;

        @media (min-width: 640px) {
            grid-template-columns: 1fr 1fr;
        }
    }

    .detail-box {
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 1.25rem;

        h4 {
            font-size: 0.9375rem;
            font-weight: 700;
            color: $color-text-primary;
            margin: 0 0 0.75rem;
        }

        ul {
            list-style: none;
            padding: 0;
            margin: 0;
            display: grid;
            gap: 0.5rem;

            li {
                font-size: 0.9375rem;
                color: $color-text-secondary;
                padding-left: 1.25rem;
                position: relative;

                &::before {
                    content: '→';
                    position: absolute;
                    left: 0;
                    color: #2563eb;
                    font-weight: 700;
                }
            }
        }
    }

    .step-time {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.75rem 1.25rem;
        background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(59, 130, 246, 0.1));
        border: 1px solid rgba(37, 99, 235, 0.2);
        border-radius: 999px;
        font-size: 0.9375rem;
        font-weight: 700;
        color: #2563eb;
        width: fit-content;

        .material-symbols-outlined {
            font-size: 20px;
        }
    }
}

/* ===== WHY ===== */
.why-section {
    .section-header {
        text-align: center;
        margin-bottom: 2.5rem;

        h2 {
            font-size: clamp(1.75rem, 3vw, 2.5rem);
            font-weight: 800;
            color: $color-text-primary;
            margin: 0 0 0.5rem;
        }

        p {
            font-size: 1.0625rem;
            color: $color-text-secondary;
            margin: 0;
        }
    }

    .why-grid {
        display: grid;
        gap: 1.5rem;
        grid-template-columns: 1fr;

        @media (min-width: 640px) {
            grid-template-columns: repeat(2, 1fr);
        }

        @media (min-width: 1024px) {
            grid-template-columns: repeat(4, 1fr);
        }
    }

    .why-card {
        background: white;
        border: 1px solid #e2e8f0;
        border-radius: 16px;
        padding: 1.75rem;
        text-align: center;
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);

        &:hover {
            transform: translateY(-6px);
            box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
            border-color: #3b82f6;

            .why-icon {
                transform: scale(1.1);
            }
        }

        .why-icon {
            width: 64px;
            height: 64px;
            margin: 0 auto 1rem;
            background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(59, 130, 246, 0.1));
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.3s ease;

            .material-symbols-outlined {
                font-size: 36px;
                color: #2563eb;
            }
        }

        h3 {
            font-size: 1.125rem;
            font-weight: 700;
            color: $color-text-primary;
            margin: 0 0 0.5rem;
        }

        p {
            font-size: 0.9375rem;
            color: $color-text-secondary;
            line-height: 1.6;
            margin: 0;
        }
    }
}

/* ===== CTA ===== */
.cta-section {
    .cta-card {
        background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(59, 130, 246, 0.05));
        border: 2px solid rgba(37, 99, 235, 0.15);
        border-radius: 24px;
        padding: 3rem 2rem;
        text-align: center;

        .cta-icon {
            width: 80px;
            height: 80px;
            margin: 0 auto 1.5rem;
            background: linear-gradient(135deg, #2563eb, #3b82f6);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);

            .material-symbols-outlined {
                font-size: 48px;
                color: white;
            }
        }

        h2 {
            font-size: clamp(1.75rem, 3vw, 2.25rem);
            font-weight: 800;
            color: $color-text-primary;
            margin: 0 0 0.75rem;
        }

        >p {
            font-size: 1.0625rem;
            color: $color-text-secondary;
            line-height: 1.6;
            margin: 0 auto 1.5rem;
            max-width: 600px;
        }

        .cta-features {
            display: flex;
            gap: 1.5rem;
            justify-content: center;
            flex-wrap: wrap;
            margin-bottom: 2rem;

            .feature-item {
                display: flex;
                align-items: center;
                gap: 0.5rem;
                font-size: 0.9375rem;
                font-weight: 600;
                color: $color-text-primary;

                .material-symbols-outlined {
                    font-size: 20px;
                    color: #10b981;
                }
            }
        }

        .cta-actions {
            display: flex;
            gap: 1rem;
            justify-content: center;
            flex-wrap: wrap;

            @media (max-width: 639px) {
                flex-direction: column;

                .btn {
                    width: 100%;
                }
            }
        }
    }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;

    &--primary {
        background: linear-gradient(135deg, #2563eb, #3b82f6);
        color: white;
        box-shadow: 0 4px 16px rgba(37, 99, 235, 0.25);

        &:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
        }
    }

    &--secondary {
        background: white;
        color: #2563eb;
        border: 2px solid #2563eb;

        &:hover {
            background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(59, 130, 246, 0.05));
            transform: translateY(-2px);
        }
    }

    &--large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

.cta-alternative {
  margin-top: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  
  .link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: gap 0.2s;
    
    .material-symbols-outlined {
      font-size: 1rem;
    }
    
    &:hover {
      gap: 0.5rem;
      text-decoration: underline;
    }
  }
}