

/* --- DISCOVER PAGE STYLES (Bento Grid) --- */
.discover-page { 
    padding: 40px 0 100px; 
}

.discover-header {
    text-align: center;
    /* Reusing our smooth entrance animation */
    animation: fadeUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
    opacity: 0;
    /* Delayed entrance for the grid */
    animation: fadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

.bento-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Smooth hover animation to make the site feel alive */
.bento-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 180, 216, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Specific Spans for the Bento Layout */
.span-2 {
    grid-column: span 2;
}

.bento-icon {
    font-size: 2.5rem;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.03);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.bento-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.bento-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Subtle background glows inside specific cards */
.ai-glow::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 180, 216, 0.1) 0%, rgba(0,0,0,0) 70%);
    z-index: 0;
    pointer-events: none;
}

.polygon-glow::before {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -20%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(130, 71, 229, 0.15) 0%, rgba(0,0,0,0) 70%); /* Polygon Purple */
    z-index: 0;
    pointer-events: none;
}

.bento-title, .bento-desc, .bento-icon, .btn-primary {
    z-index: 1; /* Keeps text above the glow */
}

/* Mobile Responsiveness for Bento Grid */
@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: 1fr 1fr;
    }
    .span-2 {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .span-2 {
        grid-column: span 1;
    }
    .bento-card {
        padding: 30px 24px;
    }
}


/* --- ANIMATIONS & DELAYS --- */
/* Defines the missing animation so the grid actually appears */
@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhances the UI: Makes the individual bento cards cascade in smoothly */
.bento-card {
    opacity: 0;
    animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.bento-card:nth-child(1) { animation-delay: 0.3s; }
.bento-card:nth-child(2) { animation-delay: 0.4s; }
.bento-card:nth-child(3) { animation-delay: 0.5s; }
.bento-card:nth-child(4) { animation-delay: 0.6s; }