/* 
 * Alpha EXA Components Stylesheet
 * Component-specific styles
 * @package AlphaEXA
 */

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1;
    border: 1px solid transparent;
    border-radius: var(--border-radius);
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-primary-foreground);
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-secondary);
    color: var(--color-primary-foreground);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
    border-radius: var(--border-radius-large);
}

.btn-glow {
    position: relative;
}

.btn-glow::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-smooth);
}

.btn-glow:hover::before {
    opacity: 0.2;
    transform: scale(1.1);
}

/* ==========================================================================
   CARDS
   ========================================================================== */

.card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-large);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

/* ==========================================================================
   ALERTS
   ========================================================================== */

.alert {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-large);
    font-weight: 600;
}

.alert-warning {
    background: hsl(0, 84%, 60%, 0.1);
    color: var(--color-destructive);
    border: 1px solid hsl(0, 84%, 60%, 0.2);
}

.alert-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.alert-text {
    margin: 0;
    color: inherit;
}

/* ==========================================================================
   SECTION HEADERS
   ========================================================================== */

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    margin-bottom: 1.5rem;
    color: var(--color-foreground);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--color-muted-foreground);
    margin: 0;
}

/* ==========================================================================
   GRIDS
   ========================================================================== */

.problems-grid,
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .problems-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================================================
   PROBLEM SECTION
   ========================================================================== */

.problem-section {
    padding: var(--section-padding);
    background: var(--color-muted);
}

.problem-card {
    height: 100%;
}

.problem-content {
    background: var(--color-card);
    border-radius: var(--border-radius-large);
    padding: 2rem;
    height: 100%;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.problem-content:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-primary);
}

.problem-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    transition: var(--transition-bounce);
}

.problem-content:hover .problem-icon {
    transform: scale(1.1);
}

.problem-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-card-foreground);
    line-height: 1.3;
}

.problem-description {
    color: var(--color-muted-foreground);
    margin: 0;
    line-height: 1.6;
}

.section-alert {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
}

/* ==========================================================================
   SOLUTION SECTION
   ========================================================================== */

.solution-section {
    padding: var(--section-padding);
    background: var(--color-background);
}

.feature-card {
    height: 100%;
}

.feature-content {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-large);
    padding: 2rem;
    height: 100%;
    transition: var(--transition-smooth);
    position: relative;
}

.feature-content:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-card-foreground);
}

.feature-description {
    color: var(--color-muted-foreground);
    margin: 0;
    line-height: 1.6;
}

.benefits-highlight {
    margin-top: 4rem;
    background: var(--gradient-subtle);
    border-radius: var(--border-radius-large);
    padding: 3rem;
    text-align: center;
}

.highlight-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.highlight-description {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.highlight-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-muted-foreground);
}

/* ==========================================================================
   PROCESS SECTION
   ========================================================================== */

.process-section {
    padding: var(--section-padding);
    background: var(--color-muted);
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .process-steps {
        flex-direction: row;
        align-items: stretch;
        gap: 0;
    }
    
    .process-step {
        flex: 1;
        display: flex;
        align-items: center;
    }
}

.step-content {
    background: var(--color-card);
    border-radius: var(--border-radius-large);
    padding: 2rem;
    position: relative;
    width: 100%;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.step-content:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-primary);
}

.step-number {
    width: 4rem;
    height: 4rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.step-digit {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary-foreground);
}

.step-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-card-foreground);
}

.step-description {
    color: var(--color-muted-foreground);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.step-duration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
}

.duration-icon {
    font-size: 1rem;
}

.step-arrow {
    display: none;
}

@media (min-width: 768px) {
    .step-arrow {
        display: block;
        position: absolute;
        right: -2rem;
        top: 50%;
        transform: translateY(-50%);
        width: 2rem;
        height: 2rem;
        color: var(--color-primary);
        z-index: 10;
    }
    
    .step-arrow svg {
        width: 100%;
        height: 100%;
    }
}

.process-cta {
    text-align: center;
    background: var(--color-card);
    border-radius: var(--border-radius-large);
    padding: 3rem;
    box-shadow: var(--shadow-soft);
}

.cta-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-card-foreground);
}

.cta-description {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */

.cta-section {
    padding: var(--section-padding);
    position: relative;
    background: var(--color-foreground);
    color: var(--color-background);
    overflow: hidden;
}

.cta-background {
    position: absolute;
    inset: 0;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    opacity: 0.9;
}

.cta-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.cta-main {
    margin-bottom: 3rem;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
    color: var(--color-background);
}

.cta-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
}

.cta-button {
    margin-bottom: 2rem;
}

.cta-trust {
    display: flex;
    justify-content: center;
}

.trust-elements {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

.trust-icon {
    font-size: 1rem;
}

.cta-urgency {
    display: flex;
    justify-content: center;
}

.urgency-box {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-large);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    backdrop-filter: blur(12px);
}

.urgency-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.urgency-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--color-background);
}

.urgency-description {
    font-size: 0.875rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
    .highlight-stats {
        gap: 2rem;
    }
    
    .trust-elements {
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }
    
    .urgency-box {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}