/* Insights & Expertise Section Styles */

.insights {
    background: var(--bg-secondary);
    padding: var(--spacing-xxl) 0;
    position: relative;
    overflow: hidden;
}

/* Mobile optimizations for insights */
@media (max-width: 480px) {
    .insights {
        padding: var(--spacing-md) 0;  /* Reduced padding on mobile */
    }
    
    .insights-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);  /* Comfortable gap between cards on mobile */
        margin-top: var(--spacing-md);
    }
    
    .insight-card {
        border-radius: 12px;
    }
}

.insights::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
    position: relative;
    z-index: 1;
    min-height: 100px; /* Ensure grid has minimum height */
}

.insight-card {
    background: var(--bg-primary);
    padding: var(--card-padding-lg);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transform: translateY(0);
    opacity: 1; /* Ensure cards are visible by default */
}

.insight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 215, 0, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.insight-card:hover::before {
    opacity: 1;
}

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

/* Individual card themes */
.insight-card.bitcoin {
    border-left: 4px solid #f7931a;
}

.insight-card.bitcoin:hover {
    box-shadow: 0 20px 40px rgba(247, 147, 26, 0.2);
}

.insight-card.ai {
    border-left: 4px solid #00d4ff;
}

.insight-card.ai:hover {
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
}

.insight-card.print {
    border-left: 4px solid #8b5cf6;
}

.insight-card.print:hover {
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
}

.insight-card.domains {
    border-left: 4px solid #10b981;
}

.insight-card.domains:hover {
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.2);
}

.insight-card.gaming {
    border-left: 4px solid #ef4444;
}

.insight-card.gaming:hover {
    box-shadow: 0 20px 40px rgba(239, 68, 68, 0.2);
}

.insight-card.tech {
    border-left: 4px solid var(--accent-primary);
}

.insight-card.tech:hover {
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.2);
}

.insight-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-secondary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.insight-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.insight-card:hover .insight-icon::before {
    opacity: 1;
}

.insight-icon svg {
    width: 28px;
    height: 28px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.insight-card:hover .insight-icon svg {
    color: var(--accent-primary);
    transform: scale(1.1);
}

/* Theme-specific icon colors */
.insight-card.bitcoin:hover .insight-icon svg {
    color: #f7931a;
}

.insight-card.ai:hover .insight-icon svg {
    color: #00d4ff;
}

.insight-card.print:hover .insight-icon svg {
    color: #8b5cf6;
}

.insight-card.domains:hover .insight-icon svg {
    color: #10b981;
}

.insight-card.gaming:hover .insight-icon svg {
    color: #ef4444;
}

.insight-card h3 {
    font-size: 1.375rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.insight-card:hover h3 {
    color: var(--accent-primary);
}

.insight-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
    margin: 0;
}

/* Dark mode adjustments */
body.dark-mode .insights {
    background: var(--deep-space);
}

body.dark-mode .insight-card {
    background: var(--cyber-gray);
    border-color: rgba(255, 215, 0, 0.1);
}

body.dark-mode .insight-card:hover {
    border-color: var(--neon-gold);
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.2);
}

body.dark-mode .insight-icon {
    background: rgba(255, 215, 0, 0.05);
}

/* Responsive design */
@media (max-width: 768px) {
    .insights-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);  /* Will use new 12px */
    }
    
    .insight-card {
        padding: var(--spacing-md);  /* Will use new 24px */
    }
    
    .insight-card h3 {
        font-size: 1.25rem;
    }
    
    .insight-card p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .insights-grid {
        gap: var(--spacing-xs);  /* Will use new 4px */
    }
    
    .insight-card {
        padding: var(--spacing-sm);  /* Will use new 8px */
        margin-bottom: 0;  /* Remove extra margin, use grid gap instead */
    }
    
    .insight-icon {
        width: 50px;
        height: 50px;
    }
    
    .insight-icon svg {
        width: 24px;
        height: 24px;
    }
}

/* Animation on scroll - handled by main.js section observer */