.fun-theme {
    --primary-color: #5e72e4;
    --secondary-color: #ff6b6b;
    --card-bg: #ffffff;
    --text-color: #2d3748;
}

.topics-header h1 {
    color: var(--primary-color);
    font-family: 'Baloo 2', cursive;
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.1);
}

.emoji-placeholder {
    font-size: 3rem;
    opacity: 0.6;
}

.difficulty-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--secondary-color);
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: bold;
}

.empty-state {
    text-align: center;
    padding: 2rem;
}

.empty-illustration {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.suggest-button {
    background: #f0f4f8;
    border: 2px dashed #cbd5e0;
    padding: 10px 20px;
    margin-top: 1rem;
    border-radius: 8px;
    cursor: pointer;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 1.5rem;
}

.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid #f0f0f0;
}

.placeholder-image {
    width: 100%;
    height: 180px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #ccc;
    border-bottom: 1px solid #f0f0f0;
}

.container {
    padding: 1.5rem;
}

.container h4 {
    margin: 0 0 0.75rem 0;
    color: #333;
    font-size: 1.25rem;
}

.container p {
    margin: 0 0 1.5rem 0;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.read-button {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    background: #4a6bff;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.read-button:hover {
    background: #3a56d4;
}

@media (max-width: 768px) {
    .topics-grid {
        grid-template-columns: 1fr;
    }
}