/* Fun Component Styles */

#fun.active {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 16px;
}

#fun .fun-card {
    margin-bottom: 0;
}

.fun-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Header: icon + title inline */
.fun-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fun-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fun-icon .material-symbols-rounded {
    font-size: 1.5rem;
}

.fun-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.fun-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 1px;
}

.fun-description {
    font-size: 1rem;
    color: var(--text-primary);
}

/* Color variants (color is inherited by child .material-symbols-rounded) */
.fun-color-red .fun-icon {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.fun-color-amber .fun-icon {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.fun-color-violet .fun-icon {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
}

/* Details */
.fun-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    justify-content: space-between;
}

.fun-detail label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 2px;
    font-weight: 500;
}

.fun-detail div {
    font-weight: 500;
    font-size: 1rem;
}

.fun-location {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.fun-location:hover {
    color: var(--accent-color);
}

.fun-detail .detail-hint {
    color: var(--text-secondary);
    font-weight: 400;
}

/* Actions */
.fun-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

@media (max-width: 768px) {
    #fun.active {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 8px;
    }
}
