/* Insights Main Page CSS
 * Styles for the main insights landing page with game/monetization tabs
 */

/* ===== Container ===== */
.insights-main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* ===== Header ===== */
.insights-main-header {
    text-align: center;
    margin-bottom: 3rem;
}

.insights-main-header h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.insights-main-header p {
    font-size: 1.1rem;
    color: #a0a0a0;
    max-width: 800px;
    margin: 0 auto;
}

/* ===== Category Section ===== */
.category-section {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 1.8rem;
    color: #f0f6fc;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(99, 102, 241, 0.3);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-title i {
    color: #6366f1;
}

/* ===== Category Grid ===== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

/* ===== Category Card ===== */
.category-card {
    background: linear-gradient(135deg, #1e1f2e 0%, #252835 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.category-card:hover {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
    transform: translateY(-4px);
}

/* ===== Card Image ===== */
.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #2a2d3a 0%, #1f2129 100%);
}

.image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6366f1;
    font-size: 3rem;
}

/* ===== Card Content ===== */
.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-title {
    font-size: 1.25rem;
    color: #f0f6fc;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
    color: #6366f1;
    font-size: 0.9rem;
}

.card-meta i {
    font-size: 1rem;
}

.card-count {
    font-weight: 600;
}

/* ===== Tab Buttons ===== */
.tab-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.75rem 2rem;
    border: 2px solid rgba(99, 102, 241, 0.3);
    background: rgba(99, 102, 241, 0.05);
    color: #6366f1;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn:hover {
    border-color: rgba(99, 102, 241, 0.6);
    background: rgba(99, 102, 241, 0.1);
}

.tab-btn.active {
    border-color: #6366f1;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* ===== Tab Content ===== */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .insights-main-header h1 {
        font-size: 1.8rem;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .tab-buttons {
        flex-direction: column;
    }

    .tab-btn {
        width: 100%;
        justify-content: center;
    }
}
