/* ============================================
   Dacnedu Game Portal - Channel/Category Page Styles
   ============================================ */

/* Channel page header banner */
.dce-channel-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 24px;
    background: linear-gradient(135deg, var(--dce-primary), var(--dce-secondary));
    border-radius: var(--dce-radius-lg);
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.2);
    position: relative;
    overflow: hidden;
}

.dce-channel-banner::before {
    content: "";
    position: absolute;
    right: -36px;
    top: -36px;
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.dce-channel-banner::after {
    content: "";
    position: absolute;
    right: 36px;
    bottom: -50px;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}

.dce-channel-icon-lg {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 1;
}

.dce-channel-icon-lg::before {
    content: "";
    width: 24px;
    height: 24px;
    background: #ffffff;
    border-radius: 4px;
}

.dce-channel-info {
    z-index: 1;
    color: #ffffff;
}

.dce-channel-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 3px;
}

.dce-channel-count {
    font-size: 0.84rem;
    opacity: 0.9;
}

/* Game count display */
.dce-game-count {
    color: var(--dce-text-light);
    font-size: 0.86rem;
    margin-bottom: 14px;
    padding: 0 4px;
}

.dce-game-count strong {
    color: var(--dce-primary);
    font-weight: 700;
}

/* Compact grid for "More Games" section */
.dce-section--compact .dce-game-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

/* Channel page rich content section */
.dce-channel-content {
    background: var(--dce-card-bg, #ffffff);
    border-radius: var(--dce-radius-lg, 12px);
    padding: 28px 30px;
    margin-top: 28px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    line-height: 1.7;
    color: var(--dce-text, #1a1a2e);
}

.dce-channel-content h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dce-text, #1a1a2e);
    margin-bottom: 12px;
    margin-top: 20px;
}

.dce-channel-content h2:first-child {
    margin-top: 0;
}

.dce-channel-content p {
    margin-bottom: 14px;
    font-size: 0.95rem;
    color: var(--dce-text-secondary, #4b5563);
}

.dce-channel-content ul {
    margin-bottom: 14px;
    padding-left: 20px;
}

.dce-channel-content ul li {
    margin-bottom: 6px;
    font-size: 0.93rem;
    color: var(--dce-text-secondary, #4b5563);
}

.dce-channel-content .dce-channel-faq {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--dce-border, #e5e7eb);
}

.dce-channel-content .dce-channel-faq p {
    margin-bottom: 10px;
}

.dce-channel-content .dce-channel-faq strong {
    color: var(--dce-text, #1a1a2e);
}

@media (max-width: 640px) {
    .dce-channel-content {
        padding: 20px 18px;
        margin-top: 20px;
    }

    .dce-channel-content h2 {
        font-size: 1.08rem;
    }
}

@media (max-width: 1024px) {
    .dce-section--compact .dce-game-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 640px) {
    .dce-section--compact .dce-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .dce-channel-banner {
        padding: 16px 18px;
    }

    .dce-channel-name {
        font-size: 1.1rem;
    }
}
