/* ==========================================================================
   PairCoder Component Styles
   Buttons, Cards, Forms, Reusable UI
   ========================================================================== */

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    font-family: var(--font-sans), serif;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--accent-primary);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.1);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
}

.btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: btn-spin 0.6s linear infinite;
    margin-left: 8px;
}

@keyframes btn-spin {
    to { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   Pain Points Cards
   -------------------------------------------------------------------------- */
.pain-points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pain-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
}

.pain-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.pain-icon {
    width: 48px;
    height: 48px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.pain-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.pain-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.pain-card .quote {
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 16px;
    padding-left: 16px;
    border-left: 2px solid var(--border);
}

/* --------------------------------------------------------------------------
   Problem/Solution Pairs (Combined Layout)
   -------------------------------------------------------------------------- */
.problem-solution-pairs {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.problem-solution-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: stretch;
}

.problem-solution-pair .problem-side,
.problem-solution-pair .solution-side {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    transition: all 0.3s ease;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.problem-solution-pair .problem-side {
    border-left: 4px solid var(--error);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, var(--bg-card) 100%);
}

.problem-solution-pair .solution-side {
    border-left: 4px solid var(--success);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, var(--bg-card) 100%);
}

.problem-solution-pair .problem-side:hover,
.problem-solution-pair .solution-side:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.problem-solution-pair .pair-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.problem-side .pair-icon {
    background: rgba(239, 68, 68, 0.15);
}

.solution-side .pair-icon {
    background: rgba(16, 185, 129, 0.15);
}

.problem-solution-pair .pair-content h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.problem-solution-pair .pair-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.problem-solution-pair .pair-content .quote {
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 10px;
    padding-left: 12px;
    border-left: 2px solid var(--border);
}

/* Philosophy tagline for combined section */
.problem-solution-tagline {
    text-align: center;
    margin-top: 48px;
    padding: 32px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.problem-solution-tagline .tagline {
    font-family: var(--font-mono), serif;
    font-size: 1.5rem;
    font-weight: 600;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.problem-solution-tagline p {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 500px;
    margin: 16px auto 0;
}

@media (max-width: 768px) {
    .problem-solution-pair {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .problem-solution-pair .problem-side,
    .problem-solution-pair .solution-side {
        padding: 24px;
    }
}

/* --------------------------------------------------------------------------
   Feature Items
   -------------------------------------------------------------------------- */
.solution-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.solution-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature-item {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-color: var(--accent-primary);
    background: var(--bg-card);
}

.feature-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.feature-content h4 {
    font-size: 1.125rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.feature-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.feature-badge {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
    text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Philosophy Card
   -------------------------------------------------------------------------- */
.philosophy-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
}

.philosophy-card .tagline {
    font-family: var(--font-mono), serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 24px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.philosophy-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Steps Grid
   -------------------------------------------------------------------------- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.step-card {
    text-align: center;
    padding: 32px 24px;
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.step-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.15);
    background: rgba(99, 102, 241, 0.05);
}

.step-number {
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.step-card h3 {
    font-size: 1.125rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   Stats Bar
   -------------------------------------------------------------------------- */
.stats-bar {
    display: flex;
    gap: 48px;
    padding: 40px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-top: 60px;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 4px;
}
