/* ===================================================================
 * The Challenge Section - Subtle Borders with Gradient Accents
 * Modern 2026 card design with premium feel
 * ================================================================ */

#problem {
    position: relative;
    padding: 5rem 0;
    /* Subtle gradient closer to pure black */
    background: linear-gradient(180deg, 
        #080808 0%, 
        #000000 50%, 
        #080808 100%
    );
}

#problem .max-w-800 {
    max-width: 900px;
    margin: 0 auto;
}

#problem h2 {
    font-family: "montserrat-bold", sans-serif;
    font-size: 2.5rem;
    color: #f1f5f9;
    margin-bottom: 2.5rem;
}

/* ===================================================================
 * CHALLENGE CARD - Subtle Border with Gradient Accent
 * ================================================================ */

#problem .prose {
    position: relative;
    padding: 3rem 2.5rem;
    /* Simple two-stop gradient: dark to light */
    background: linear-gradient(135deg,
        #050505 0%,
        #1a1a1a 100%
    );
    
    /* Subtle border - muted blue */
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 12px;
    
    /* Smooth transitions */
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* Subtle shadow for depth */
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Gradient border overlay - hidden by default */
#problem .prose::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    padding: 1px;
    
    /* Gradient border effect */
    background: linear-gradient(135deg, 
        rgba(96, 165, 250, 0.5) 0%,
        rgba(139, 92, 246, 0.5) 100%
    );
    
    /* Mask to create border effect */
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

/* Top accent line - appears on hover */
#problem .prose::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 12px 12px 0 0;
    
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(96, 165, 250, 0.8) 50%,
        transparent 100%
    );
    
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Hover state - activate gradient border and accent */
#problem .prose:hover {
    /* Simple two-stop gradient: dark to light (brighter on hover) */
    background: linear-gradient(135deg,
        #0a0a0a 0%,
        #242424 100%
    );
    border-color: rgba(96, 165, 250, 0.3);
    transform: translateY(-2px);
    
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.4),
        0 8px 24px rgba(59, 130, 246, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

#problem .prose:hover::before {
    opacity: 1;
}

#problem .prose:hover::after {
    opacity: 1;
}

/* ===================================================================
 * TYPOGRAPHY
 * ================================================================ */

#problem .prose p {
    font-family: "montserrat-regular", sans-serif;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
}

#problem .prose p:last-child {
    margin-bottom: 0;
}

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

@media (max-width: 768px) {
    #problem {
        padding: 3.5rem 0;
    }
    
    #problem h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    #problem .prose {
        padding: 2.5rem 2rem;
    }
    
    #problem .prose p {
        font-size: 1rem;
        line-height: 1.7;
    }
}

@media (max-width: 480px) {
    #problem {
        padding: 3rem 0;
    }
    
    #problem h2 {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
    
    #problem .prose {
        padding: 2rem 1.5rem;
        border-radius: 8px;
    }
    
    #problem .prose p {
        font-size: 0.95rem;
    }
}
